Julio López
39fb62970f
refactor(cli): refactor diagnosis flags ( #5026 )
...
Refactor `--profile-*` flags:
- Multiple profile types can be enabled at once, before only
a single type profiling could be done during a process execution.
- The new `--profiles-store-on-exit` enables all available profile
types, except for CPU profiling which needs to be explicitly enabled.
- Profiling parameters can now be set via new flags. This allows setting
the profile parameters for the pprof endpoint, as well as when saving
profiles to files on exit.
- Group profiling flags with other observability flags
- Adds a `--diagnostics-output-directory` flag that unifies and
supersedes the `--profile-dir` and `--metrics-directory` flags
Enhancements and behavior changes:
- Profile flags now have effect for all kopia commands, including
`server start`. Before these flags did not have any effect
in a few commands.
- Multiple profile types can be enabled at once, before only
a single type profiling could be done during a process execution.
- The new `--profiles-store-on-exit` enables all available profile
types, except for CPU profiling which needs to be explicitly enabled.
- Profiling parameters can now be set via new flags. This allows setting
the profile parameters for the pprof endpoint, as well as when saving
profiles to files on exit.
The following flags have been removed:
- `--profile-dir`: superseded by the `--diagnostics-output-directory` flag
- `--profile-blocking`: the `--profile-store-on-exit` flag enables blocking
profiling. Use `--profile-blocking-rate=0` to explicitly disable it.
- `--profile-memory`: the `--profile-store-on-exit` flag enables memory
profiling. Use `--profile-memory-rate=0` to explicitly disable it.
- `--profile-mutex`: the `--profile-store-on-exit` flag enables mutex
profiling. Use `--profile-mutex-fraction=0` to explicitly disable it.
Add CLI test for profile flags.
2025-11-26 09:40:01 -08:00
..
2025-11-26 09:40:01 -08:00
2025-09-23 17:27:25 -07:00
2025-11-11 12:37:07 -08:00
2025-10-23 17:11:38 -07:00
2021-05-03 10:28:00 -07:00
2024-10-05 19:05:00 -07:00
2021-05-06 20:26:35 -07:00
2021-05-03 10:28:00 -07:00
2025-10-23 17:11:38 -07:00
2024-10-30 09:18:12 -07:00
2024-11-16 07:16:50 -08:00
2024-10-30 09:18:12 -07:00
2024-10-25 00:18:33 -07:00
2024-08-26 17:26:32 -07:00
2025-06-10 17:24:14 -07:00
2025-11-17 16:42:12 -08:00
2025-09-03 12:35:46 -07:00
2025-11-05 22:03:21 -08:00
2024-02-02 22:19:24 -08:00
2021-11-16 06:02:04 -08:00
2025-11-11 21:27:10 -08:00
2021-09-19 18:50:38 -07:00
2021-09-08 18:44:03 -07:00
2022-12-17 16:19:12 +00:00
2024-08-26 17:26:32 -07:00
2021-09-19 18:50:38 -07:00
2024-03-25 22:20:38 -07:00
2023-08-24 09:38:56 -07:00
2022-03-12 23:16:39 -08:00
2023-08-24 09:38:56 -07:00
2024-10-05 19:05:00 -07:00
2021-09-08 18:44:03 -07:00
2024-04-08 09:52:47 -07:00
2022-03-06 14:30:58 -08:00
2025-09-03 12:35:46 -07:00
2024-04-12 22:59:11 -07:00
2023-03-11 06:28:05 -08:00
2025-11-06 10:22:58 -08:00
2022-05-25 14:15:56 +00:00
2024-08-26 17:26:32 -07:00
2021-10-06 08:39:10 -07:00
2025-11-17 16:42:12 -08:00
2021-05-03 10:28:00 -07:00
2025-05-05 20:59:52 -07:00
2024-10-05 19:05:00 -07:00
2021-07-06 21:38:08 -07:00
2021-09-08 18:44:03 -07:00
2025-11-17 16:42:12 -08:00
2023-04-09 01:34:36 +00:00
2025-11-04 11:40:20 -08:00
2025-09-03 12:35:46 -07:00
2021-07-06 21:38:08 -07:00
2025-11-05 23:23:47 -08:00
2022-10-24 19:00:36 -07:00
2024-05-29 20:31:57 -07:00
2025-11-11 21:27:10 -08:00
2025-09-27 17:11:13 -07:00
2021-06-05 08:48:43 -07:00
2025-07-01 20:42:10 -07:00
2021-09-10 17:51:55 -07:00
2025-11-13 12:27:42 -08:00
2024-10-28 16:04:29 -07:00
2025-06-10 17:24:14 -07:00
2025-05-09 23:01:18 -07:00
2021-05-03 10:28:00 -07:00
2025-09-03 12:35:46 -07:00
2023-04-09 01:34:36 +00:00
2021-05-11 22:26:28 -07:00
2021-05-03 10:28:00 -07:00
2025-11-12 22:15:27 -08:00
2025-04-16 23:25:01 -07:00
2024-10-06 16:28:39 +00:00
2024-10-06 16:28:39 +00:00
2024-10-06 16:28:39 +00:00
2024-12-29 09:50:20 -08:00
2024-10-06 16:28:39 +00:00
2024-10-06 16:28:39 +00:00
2024-10-06 16:28:39 +00:00
2024-12-29 09:50:20 -08:00
2024-12-29 09:50:20 -08:00
2024-12-29 09:50:20 -08:00
2025-04-26 13:01:20 -07:00
2024-12-29 09:50:20 -08:00
2024-10-06 16:28:39 +00:00
2024-10-06 16:28:39 +00:00
2024-10-06 16:28:39 +00:00
2024-11-11 17:53:50 -08:00
2024-10-06 16:28:39 +00:00
2025-11-11 21:27:10 -08:00
2024-10-06 16:28:39 +00:00
2024-10-06 16:28:39 +00:00
2025-11-12 23:12:06 -08:00
2025-04-26 13:01:20 -07:00
2025-11-16 23:07:51 -08:00
2025-04-26 13:01:20 -07:00
2025-04-15 22:49:13 -07:00
2021-05-06 20:26:35 -07:00
2025-04-23 23:37:15 -07:00
2023-03-11 06:28:05 -08:00
2024-10-23 23:28:23 -07:00
2023-03-11 06:28:05 -08:00
2023-03-11 06:28:05 -08:00
2022-02-22 22:21:48 -08:00
2023-03-11 06:28:05 -08:00
2024-02-07 00:28:20 +00:00
2024-02-03 21:44:41 -08:00
2023-06-18 13:26:01 -07:00
2025-10-23 17:11:38 -07:00
2024-06-07 13:42:15 -07:00
2024-06-18 23:13:17 -07:00
2024-04-08 09:52:47 -07:00
2022-10-24 19:00:36 -07:00
2023-06-18 13:26:01 -07:00
2025-04-23 23:37:15 -07:00
2025-05-12 23:34:28 +00:00
2025-04-23 23:37:15 -07:00
2022-03-17 22:22:24 -07:00
2022-05-18 01:27:06 -07:00
2022-07-30 14:13:52 -07:00
2022-09-02 18:55:01 -07:00
2024-10-05 19:05:00 -07:00
2024-11-17 10:15:00 -08:00
2024-06-18 23:13:17 -07:00
2025-04-15 22:49:13 -07:00
2024-10-05 19:05:00 -07:00
2021-05-11 21:53:36 -07:00
2025-09-03 12:35:46 -07:00
2025-06-10 17:24:14 -07:00
2025-05-31 23:17:38 -07:00
2024-10-05 19:05:00 -07:00
2024-08-26 17:26:32 -07:00
2025-10-14 19:28:54 -07:00
2025-04-26 23:11:36 -07:00
2024-06-18 23:13:17 -07:00
2022-05-18 01:27:06 -07:00
2025-04-26 13:01:20 -07:00
2025-09-24 12:11:22 -07:00
2023-09-09 13:07:53 -07:00
2022-07-27 16:23:45 -07:00
2025-06-10 17:24:14 -07:00
2025-11-12 20:59:56 -08:00
2022-01-03 18:48:38 -08:00
2025-11-11 21:27:10 -08:00
2022-08-09 06:07:54 +00:00
2025-04-26 13:01:20 -07:00
2022-01-03 18:48:38 -08:00
2022-08-09 06:07:54 +00:00
2022-01-03 18:48:38 -08:00
2022-08-09 06:07:54 +00:00
2022-01-03 18:48:38 -08:00
2024-10-05 19:05:00 -07:00
2025-09-27 17:11:13 -07:00
2022-07-09 18:22:50 -07:00
2022-07-09 18:22:50 -07:00
2024-06-18 23:13:17 -07:00
2022-05-18 01:27:06 -07:00
2025-11-19 21:46:28 -08:00
2024-10-10 10:22:34 -07:00
2021-05-06 20:26:35 -07:00
2021-05-03 10:28:00 -07:00
2021-09-28 15:19:02 -07:00
2024-10-05 19:05:00 -07:00
2025-11-12 22:15:27 -08:00
2022-09-02 10:35:59 -07:00
2021-11-06 10:06:05 -07:00
2025-04-26 23:11:36 -07:00
2023-09-02 18:23:21 -07:00
2025-06-24 15:15:59 -07:00
2025-11-11 21:27:10 -08:00
2025-04-26 13:01:20 -07:00
2024-10-23 23:28:23 -07:00
2025-11-12 23:12:06 -08:00
2025-06-10 17:24:14 -07:00
2025-11-12 23:12:06 -08:00
2025-11-12 23:12:06 -08:00
2024-10-05 19:05:00 -07:00
2021-05-03 10:28:00 -07:00
2022-05-31 13:43:42 -07:00
2025-06-24 15:15:59 -07:00
2025-06-24 15:15:59 -07:00
2023-04-10 23:17:32 -04:00
2025-11-16 22:55:35 -08:00
2021-05-03 10:28:00 -07:00
2024-07-11 19:29:06 -07:00
2025-04-26 23:11:36 -07:00
2021-05-06 20:26:35 -07:00
2021-05-06 20:26:35 -07:00
2024-07-11 19:29:06 -07:00
2025-11-12 23:12:06 -08:00
2024-11-15 18:00:09 -08:00
2024-01-11 18:02:31 -08:00
2025-05-29 08:26:55 -07:00
2025-11-26 09:40:01 -08:00
2025-11-26 09:40:01 -08:00
2023-06-18 13:26:01 -07:00
2023-03-11 06:28:05 -08:00
2025-11-11 21:27:10 -08:00
2023-06-18 13:26:01 -07:00
2025-03-31 21:10:21 -07:00
2025-11-26 09:40:01 -08:00
2024-08-27 09:42:58 -07:00
2024-08-26 17:26:32 -07:00
2025-11-11 21:27:10 -08:00
2023-06-18 13:26:01 -07:00
2025-07-19 12:24:03 -07:00
2023-06-18 13:26:01 -07:00
2024-11-16 07:16:50 -08:00
2024-09-26 21:46:25 -07:00
2023-06-18 13:26:01 -07:00
2023-07-27 14:41:23 -07:00
2025-05-01 15:37:22 -07:00
2023-03-31 14:32:34 -07:00
2024-10-05 19:05:00 -07:00
2021-11-16 06:02:04 -08:00
2024-10-05 19:05:00 -07:00
2023-03-11 06:28:05 -08:00
2022-07-30 14:13:52 -07:00
2024-12-30 15:06:11 -08:00
2023-03-11 06:28:05 -08:00
2025-11-15 22:36:45 -08:00
2024-10-05 19:05:00 -07:00