-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
src: allow setting a dir for all diagnostic output #33584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,6 +108,9 @@ added: v12.0.0 | |
| Specify the directory where the CPU profiles generated by `--cpu-prof` will | ||
| be placed. | ||
|
|
||
| The default value is controlled by the | ||
| [--diagnostic-dir](#--diagnostic-dir=directory) command line option. | ||
|
|
||
| ### `--cpu-prof-interval` | ||
| <!-- YAML | ||
| added: v12.2.0 | ||
|
|
@@ -129,9 +132,14 @@ Specify the file name of the CPU profile generated by `--cpu-prof`. | |
|
|
||
| ### `--diagnostic-dir=directory` | ||
|
|
||
| Set the directory for which all diagnostic output files should be written to. | ||
| Set the directory to which all diagnostic output files will be written to. | ||
| Defaults to current working directory. | ||
|
|
||
| Affects the default output directory of: | ||
| * [--cpu-prof-dir](#--cpu-prof-dir) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Considering these two dir flags are still experimental, I think we could just emit a deprecation warning for them, and make them no-ops when
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. um, on the other hand, maybe we would also want to allow the user to override these directories individually through
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thats what I intented with: if (cpu_prof && cpu_prof_dir.empty() && !diagnostic_dir.empty()) {
cpu_prof_dir = diagnostic_dir;
} |
||
| * [--heap-prof-dir](#--heap-prof-dir) | ||
| * [--redirect-warnings](#--redirect-warnings=file) | ||
|
|
||
| ### `--disable-proto=mode` | ||
| <!-- YAML | ||
| added: | ||
|
|
@@ -365,6 +373,9 @@ added: v12.4.0 | |
| Specify the directory where the heap profiles generated by `--heap-prof` will | ||
| be placed. | ||
|
|
||
| The default value is controlled by the | ||
| [--diagnostic-dir](#--diagnostic-dir=directory) command line option. | ||
|
|
||
| ### `--heap-prof-interval` | ||
| <!-- YAML | ||
| added: v12.4.0 | ||
|
|
@@ -645,6 +656,10 @@ file will be created if it does not exist, and will be appended to if it does. | |
| If an error occurs while attempting to write the warning to the file, the | ||
| warning will be written to stderr instead. | ||
|
|
||
| The `file` name may be an absolute path. If it is not, the default directory it | ||
| will be written to is controlled by the | ||
| [--diagnostic-dir](#--diagnostic-dir=directory) command line option. | ||
|
|
||
| ### `--report-compact` | ||
| <!-- YAML | ||
| added: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.