We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b45c05 commit 09763a2Copy full SHA for 09763a2
doc/api/tracing.md
@@ -80,6 +80,17 @@ string that supports `${rotation}` and `${pid}`:
80
node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
81
```
82
83
+To guarantee that the log file is properly generated after signal events like
84
+`SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers
85
+in your code, such as:
86
+
87
+```js
88
+process.on('SIGINT', function onSigint() {
89
+ console.info('Received SIGINT.');
90
+ process.exit(130); // Or applicable exit code depending on OS and signal
91
+});
92
+```
93
94
The tracing system uses the same time source
95
as the one used by `process.hrtime()`.
96
However the trace-event timestamps are expressed in microseconds,
0 commit comments