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 46f4d5e commit 2483455Copy full SHA for 2483455
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();
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