-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for saving the current configuration settings (#535)
Add support for saving the current configuration settings as a named configuration and reloading such a configuration later. All of the configurations are stored in a settings file, by default: ~/.config/pprof.json A struct named config replaces the old map[string]string which used to store the set of configurable options. Instead, each option is now a field in the config struct. The UI now has a new 'Config' menu with Save as: prompts for a name and saves current config. Default: applies default config. $X: for every config named X: applies settings from X. The currently selected config is highlighted. Every named config has a delete button to control deletion. Some semi-related changes: 1. Both filefunctions and functions in the granularity group had an initial value of true, which is incorrect since these are mutually incompatible choices. Set filefunctions' initial value to false. 2. Renamed the group for sorting from "cumulative" to "sort". 3. Store testing.T in TestUI instead of leaving the field nil.
- Loading branch information
Showing
16 changed files
with
1,485 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.