Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
nodejs /
api /
Delete
Unzip
Name
Size
Permission
Date
Action
assets
[ DIR ]
drwxr-xr-x
2025-04-07 20:36
addons.html
106.29
KB
-rw-r--r--
2024-04-10 12:46
addons.json.gz
10.96
KB
-rw-r--r--
2024-04-10 12:46
addons.md
39.78
KB
-rw-r--r--
2024-04-10 12:46
all.html
7.64
MB
-rw-r--r--
2024-04-10 12:46
all.json.gz
931.76
KB
-rw-r--r--
2024-04-10 12:46
assert.html
192.08
KB
-rw-r--r--
2024-04-10 12:46
assert.json.gz
13.09
KB
-rw-r--r--
2024-04-10 12:46
assert.md
66.87
KB
-rw-r--r--
2024-04-10 12:46
async_context.html
84.69
KB
-rw-r--r--
2024-04-10 12:46
async_context.json.gz
7.15
KB
-rw-r--r--
2024-04-10 12:46
async_context.md
25.02
KB
-rw-r--r--
2024-04-10 12:46
async_hooks.html
87.84
KB
-rw-r--r--
2024-04-10 12:46
async_hooks.json.gz
9.82
KB
-rw-r--r--
2024-04-10 12:46
async_hooks.md
30.51
KB
-rw-r--r--
2024-04-10 12:46
buffer.html
479.59
KB
-rw-r--r--
2024-04-10 12:46
buffer.json.gz
28.94
KB
-rw-r--r--
2024-04-10 12:46
buffer.md
149.19
KB
-rw-r--r--
2024-04-10 12:46
child_process.html
169.7
KB
-rw-r--r--
2024-04-10 12:46
child_process.json.gz
20.87
KB
-rw-r--r--
2024-04-10 12:46
child_process.md
70.46
KB
-rw-r--r--
2024-04-10 12:46
cli.html
190.71
KB
-rw-r--r--
2024-04-10 12:46
cli.json.gz
29.53
KB
-rw-r--r--
2024-04-10 12:46
cli.md
83.21
KB
-rw-r--r--
2024-04-10 12:46
cluster.html
91.15
KB
-rw-r--r--
2024-04-10 12:46
cluster.json.gz
9.48
KB
-rw-r--r--
2024-04-10 12:46
cluster.md
28.84
KB
-rw-r--r--
2024-04-10 12:46
console.html
60
KB
-rw-r--r--
2024-04-10 12:46
console.json.gz
6.06
KB
-rw-r--r--
2024-04-10 12:46
console.md
16.5
KB
-rw-r--r--
2024-04-10 12:46
corepack.html
24.03
KB
-rw-r--r--
2024-04-10 12:46
corepack.json.gz
2.81
KB
-rw-r--r--
2024-04-10 12:46
corepack.md
5.84
KB
-rw-r--r--
2024-04-10 12:46
crypto.html
528.53
KB
-rw-r--r--
2024-04-10 12:46
crypto.json.gz
46.51
KB
-rw-r--r--
2024-04-10 12:46
crypto.md
196.46
KB
-rw-r--r--
2024-04-10 12:46
debugger.html
28.73
KB
-rw-r--r--
2024-04-10 12:46
debugger.json.gz
3.12
KB
-rw-r--r--
2024-04-10 12:46
debugger.md
7.02
KB
-rw-r--r--
2024-04-10 12:46
deprecations.html
207.23
KB
-rw-r--r--
2024-04-10 12:46
deprecations.json.gz
25.03
KB
-rw-r--r--
2024-04-10 12:46
deprecations.md
102.53
KB
-rw-r--r--
2024-04-10 12:46
dgram.html
90.78
KB
-rw-r--r--
2024-04-10 12:46
dgram.json.gz
10.2
KB
-rw-r--r--
2024-04-10 12:46
dgram.md
31.03
KB
-rw-r--r--
2024-04-10 12:46
diagnostics_channel.html
98.54
KB
-rw-r--r--
2024-04-10 12:46
diagnostics_channel.json.gz
7.72
KB
-rw-r--r--
2024-04-10 12:46
diagnostics_channel.md
31.55
KB
-rw-r--r--
2024-04-10 12:46
dns.html
131.54
KB
-rw-r--r--
2024-04-10 12:46
dns.json.gz
15.84
KB
-rw-r--r--
2024-04-10 12:46
dns.md
52.41
KB
-rw-r--r--
2024-04-10 12:46
documentation.html
26.34
KB
-rw-r--r--
2024-04-10 12:46
documentation.json.gz
2.45
KB
-rw-r--r--
2024-04-10 12:46
documentation.md
5.28
KB
-rw-r--r--
2024-04-10 12:46
domain.html
49.05
KB
-rw-r--r--
2024-04-10 12:46
domain.json.gz
6.2
KB
-rw-r--r--
2024-04-10 12:46
domain.md
15.21
KB
-rw-r--r--
2024-04-10 12:46
embedding.html
26.38
KB
-rw-r--r--
2024-04-10 12:46
embedding.json.gz
3.01
KB
-rw-r--r--
2024-04-10 12:46
embedding.md
6.65
KB
-rw-r--r--
2024-04-10 12:46
errors.html
292.27
KB
-rw-r--r--
2024-04-10 12:46
errors.json.gz
43.19
KB
-rw-r--r--
2024-04-10 12:46
errors.md
99.68
KB
-rw-r--r--
2024-04-10 12:46
esm.html
91.64
KB
-rw-r--r--
2024-04-10 12:46
esm.json.gz
15.35
KB
-rw-r--r--
2024-04-10 12:46
esm.md
42.55
KB
-rw-r--r--
2024-04-10 12:46
events.html
232.26
KB
-rw-r--r--
2024-04-10 12:46
events.json.gz
17.43
KB
-rw-r--r--
2024-04-10 12:46
events.md
67.11
KB
-rw-r--r--
2024-04-10 12:46
fs.html
643.05
KB
-rw-r--r--
2024-04-10 12:46
fs.json.gz
68.59
KB
-rw-r--r--
2024-04-10 12:46
fs.md
254.65
KB
-rw-r--r--
2024-04-10 12:46
globals.html
89.01
KB
-rw-r--r--
2024-04-10 12:46
globals.json.gz
10.65
KB
-rw-r--r--
2024-04-10 12:46
globals.md
25.62
KB
-rw-r--r--
2024-04-10 12:46
http.html
304.7
KB
-rw-r--r--
2024-04-10 12:46
http.json.gz
36.39
KB
-rw-r--r--
2024-04-10 12:46
http.md
115.14
KB
-rw-r--r--
2024-04-10 12:46
http2.html
326.42
KB
-rw-r--r--
2024-04-10 12:46
http2.json.gz
40.42
KB
-rw-r--r--
2024-04-10 12:46
http2.md
133.89
KB
-rw-r--r--
2024-04-10 12:46
https.html
58.08
KB
-rw-r--r--
2024-04-10 12:46
https.json.gz
5.82
KB
-rw-r--r--
2024-04-10 12:46
https.md
16.71
KB
-rw-r--r--
2024-04-10 12:46
index.html
13.19
KB
-rw-r--r--
2024-04-10 12:46
index.json
54
B
-rw-r--r--
2024-04-10 12:46
index.md
1.97
KB
-rw-r--r--
2024-04-10 12:46
inspector.html
52.55
KB
-rw-r--r--
2024-04-10 12:46
inspector.json.gz
4.55
KB
-rw-r--r--
2024-04-10 12:46
inspector.md
13.54
KB
-rw-r--r--
2024-04-10 12:46
intl.html
33.63
KB
-rw-r--r--
2024-04-10 12:46
intl.json.gz
4.12
KB
-rw-r--r--
2024-04-10 12:46
intl.md
11.49
KB
-rw-r--r--
2024-04-10 12:46
module.html
98.98
KB
-rw-r--r--
2024-04-10 12:46
module.json.gz
12.75
KB
-rw-r--r--
2024-04-10 12:46
module.md
35.64
KB
-rw-r--r--
2024-04-10 12:46
modules.html
81.33
KB
-rw-r--r--
2024-04-10 12:46
modules.json.gz
12.71
KB
-rw-r--r--
2024-04-10 12:46
modules.md
33.13
KB
-rw-r--r--
2024-04-10 12:46
n-api.html
414.92
KB
-rw-r--r--
2024-04-10 12:46
n-api.json.gz
53.65
KB
-rw-r--r--
2024-04-10 12:46
n-api.md
226.71
KB
-rw-r--r--
2024-04-10 12:46
net.html
153.4
KB
-rw-r--r--
2024-04-10 12:46
net.json.gz
19.3
KB
-rw-r--r--
2024-04-10 12:46
net.md
55.99
KB
-rw-r--r--
2024-04-10 12:46
os.html
72.49
KB
-rw-r--r--
2024-04-10 12:46
os.json.gz
8.91
KB
-rw-r--r--
2024-04-10 12:46
os.md
35.56
KB
-rw-r--r--
2024-04-10 12:46
packages.html
101.84
KB
-rw-r--r--
2024-04-10 12:46
packages.json.gz
15.6
KB
-rw-r--r--
2024-04-10 12:46
packages.md
47.05
KB
-rw-r--r--
2024-04-10 12:46
path.html
54.23
KB
-rw-r--r--
2024-04-10 12:46
path.json.gz
5.15
KB
-rw-r--r--
2024-04-10 12:46
path.md
15.68
KB
-rw-r--r--
2024-04-10 12:46
perf_hooks.html
155
KB
-rw-r--r--
2024-04-10 12:46
perf_hooks.json.gz
13.02
KB
-rw-r--r--
2024-04-10 12:46
perf_hooks.md
50.26
KB
-rw-r--r--
2024-04-10 12:46
permissions.html
55.66
KB
-rw-r--r--
2024-04-10 12:46
permissions.json.gz
7.74
KB
-rw-r--r--
2024-04-10 12:46
permissions.md
20.58
KB
-rw-r--r--
2024-04-10 12:46
policy.html
14.78
KB
-rw-r--r--
2024-04-10 12:46
policy.json
476
B
-rw-r--r--
2024-04-10 12:46
policy.md
222
B
-rw-r--r--
2024-04-10 12:46
process.html
298.54
KB
-rw-r--r--
2024-04-10 12:46
process.json.gz
32.32
KB
-rw-r--r--
2024-04-10 12:46
process.md
109.77
KB
-rw-r--r--
2024-04-10 12:46
punycode.html
26.81
KB
-rw-r--r--
2024-04-10 12:46
punycode.json.gz
2
KB
-rw-r--r--
2024-04-10 12:46
punycode.md
4.17
KB
-rw-r--r--
2024-04-10 12:46
querystring.html
29.11
KB
-rw-r--r--
2024-04-10 12:46
querystring.json.gz
2.65
KB
-rw-r--r--
2024-04-10 12:46
querystring.md
5.55
KB
-rw-r--r--
2024-04-10 12:46
readline.html
105.63
KB
-rw-r--r--
2024-04-10 12:46
readline.json.gz
11.63
KB
-rw-r--r--
2024-04-10 12:46
readline.md
38.86
KB
-rw-r--r--
2024-04-10 12:46
repl.html
69.37
KB
-rw-r--r--
2024-04-10 12:46
repl.json.gz
10
KB
-rw-r--r--
2024-04-10 12:46
repl.md
23.69
KB
-rw-r--r--
2024-04-10 12:46
report.html
82.12
KB
-rw-r--r--
2024-04-10 12:46
report.json.gz
6.39
KB
-rw-r--r--
2024-04-10 12:46
report.md
18.83
KB
-rw-r--r--
2024-04-10 12:46
single-executable-applications.html
43.25
KB
-rw-r--r--
2024-04-10 12:46
single-executable-applications.json.gz
5.6
KB
-rw-r--r--
2024-04-10 12:46
single-executable-applications.md
14.57
KB
-rw-r--r--
2024-04-10 12:46
stream.html
397.5
KB
-rw-r--r--
2024-04-10 12:46
stream.json.gz
51.21
KB
-rw-r--r--
2024-04-10 12:46
stream.md
146.23
KB
-rw-r--r--
2024-04-10 12:46
string_decoder.html
24.02
KB
-rw-r--r--
2024-04-10 12:46
string_decoder.json.gz
1.55
KB
-rw-r--r--
2024-04-10 12:46
string_decoder.md
2.9
KB
-rw-r--r--
2024-04-10 12:46
synopsis.html
19.55
KB
-rw-r--r--
2024-04-10 12:46
synopsis.json
2.96
KB
-rw-r--r--
2024-04-10 12:46
synopsis.md
2.11
KB
-rw-r--r--
2024-04-10 12:46
test.html
270.6
KB
-rw-r--r--
2024-04-10 12:46
test.json.gz
22.87
KB
-rw-r--r--
2024-04-10 12:46
test.md
90.96
KB
-rw-r--r--
2024-04-10 12:46
timers.html
57.88
KB
-rw-r--r--
2024-04-10 12:46
timers.json.gz
5.29
KB
-rw-r--r--
2024-04-10 12:46
timers.md
15.84
KB
-rw-r--r--
2024-04-10 12:46
tls.html
181.63
KB
-rw-r--r--
2024-04-10 12:46
tls.json.gz
32.68
KB
-rw-r--r--
2024-04-10 12:46
tls.md
89.26
KB
-rw-r--r--
2024-04-10 12:46
tracing.html
34.95
KB
-rw-r--r--
2024-04-10 12:46
tracing.json.gz
3.47
KB
-rw-r--r--
2024-04-10 12:46
tracing.md
8.52
KB
-rw-r--r--
2024-04-10 12:46
tty.html
37.52
KB
-rw-r--r--
2024-04-10 12:46
tty.json.gz
3.72
KB
-rw-r--r--
2024-04-10 12:46
tty.md
8.91
KB
-rw-r--r--
2024-04-10 12:46
url.html
152.81
KB
-rw-r--r--
2024-04-10 12:46
url.json.gz
15.87
KB
-rw-r--r--
2024-04-10 12:46
url.md
54.66
KB
-rw-r--r--
2024-04-10 12:46
util.html
290.8
KB
-rw-r--r--
2024-04-10 12:46
util.json.gz
26.7
KB
-rw-r--r--
2024-04-10 12:46
util.md
97.56
KB
-rw-r--r--
2024-04-10 12:46
v8.html
113.98
KB
-rw-r--r--
2024-04-10 12:46
v8.json.gz
12.1
KB
-rw-r--r--
2024-04-10 12:46
v8.md
35.35
KB
-rw-r--r--
2024-04-10 12:46
vm.html
161
KB
-rw-r--r--
2024-04-10 12:46
vm.json.gz
19.23
KB
-rw-r--r--
2024-04-10 12:46
vm.md
68.09
KB
-rw-r--r--
2024-04-10 12:46
wasi.html
31.38
KB
-rw-r--r--
2024-04-10 12:46
wasi.json.gz
3.48
KB
-rw-r--r--
2024-04-10 12:46
wasi.md
8.2
KB
-rw-r--r--
2024-04-10 12:46
webcrypto.html
152.64
KB
-rw-r--r--
2024-04-10 12:46
webcrypto.json.gz
9.84
KB
-rw-r--r--
2024-04-10 12:46
webcrypto.md
45.9
KB
-rw-r--r--
2024-04-10 12:46
webstreams.html
157.4
KB
-rw-r--r--
2024-04-10 12:46
webstreams.json.gz
10.44
KB
-rw-r--r--
2024-04-10 12:46
webstreams.md
39
KB
-rw-r--r--
2024-04-10 12:46
worker_threads.html
117.56
KB
-rw-r--r--
2024-04-10 12:46
worker_threads.json.gz
14.92
KB
-rw-r--r--
2024-04-10 12:46
worker_threads.md
44.67
KB
-rw-r--r--
2024-04-10 12:46
zlib.html
109.42
KB
-rw-r--r--
2024-04-10 12:46
zlib.json.gz
10.34
KB
-rw-r--r--
2024-04-10 12:46
zlib.md
35.1
KB
-rw-r--r--
2024-04-10 12:46
Save
Rename
# Trace events <!--introduced_in=v7.7.0--> > Stability: 1 - Experimental <!-- source_link=lib/trace_events.js --> The `node:trace_events` module provides a mechanism to centralize tracing information generated by V8, Node.js core, and userspace code. Tracing can be enabled with the `--trace-event-categories` command-line flag or by using the `node:trace_events` module. The `--trace-event-categories` flag accepts a list of comma-separated category names. The available categories are: * `node`: An empty placeholder. * `node.async_hooks`: Enables capture of detailed [`async_hooks`][] trace data. The [`async_hooks`][] events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. * `node.console`: Enables capture of `console.time()` and `console.count()` output. * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. * `node.dns.native`: Enables capture of trace data for DNS queries. * `node.net.native`: Enables capture of trace data for network. * `node.environment`: Enables capture of Node.js Environment milestones. * `node.fs.sync`: Enables capture of trace data for file system sync methods. * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods. * `node.fs.async`: Enables capture of trace data for file system async methods. * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods. * `node.perf`: Enables capture of [Performance API][] measurements. * `node.perf.usertiming`: Enables capture of only Performance API User Timing measures and marks. * `node.perf.timerify`: Enables capture of only Performance API timerify measurements. * `node.promises.rejections`: Enables capture of trace data tracking the number of unhandled Promise rejections and handled-after-rejections. * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods. * `v8`: The [V8][] events are GC, compiling, and execution related. * `node.http`: Enables capture of trace data for http request / response. By default the `node`, `node.async_hooks`, and `v8` categories are enabled. ```bash node --trace-event-categories v8,node,node.async_hooks server.js ``` Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default. ```bash node --trace-events-enabled # is equivalent to node --trace-event-categories v8,node,node.async_hooks ``` Alternatively, trace events may be enabled using the `node:trace_events` module: ```js const trace_events = require('node:trace_events'); const tracing = trace_events.createTracing({ categories: ['node.perf'] }); tracing.enable(); // Enable trace event capture for the 'node.perf' category // do work tracing.disable(); // Disable trace event capture for the 'node.perf' category ``` Running Node.js with tracing enabled will produce log files that can be opened in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome. The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can be specified with `--trace-event-file-pattern` that accepts a template string that supports `${rotation}` and `${pid}`: ```bash node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js ``` To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers in your code, such as: ```js process.on('SIGINT', function onSigint() { console.info('Received SIGINT.'); process.exit(130); // Or applicable exit code depending on OS and signal }); ``` The tracing system uses the same time source as the one used by `process.hrtime()`. However the trace-event timestamps are expressed in microseconds, unlike `process.hrtime()` which returns nanoseconds. The features from this module are not available in [`Worker`][] threads. ## The `node:trace_events` module <!-- YAML added: v10.0.0 --> ### `Tracing` object <!-- YAML added: v10.0.0 --> The `Tracing` object is used to enable or disable tracing for sets of categories. Instances are created using the `trace_events.createTracing()` method. When created, the `Tracing` object is disabled. Calling the `tracing.enable()` method adds the categories to the set of enabled trace event categories. Calling `tracing.disable()` will remove the categories from the set of enabled trace event categories. #### `tracing.categories` <!-- YAML added: v10.0.0 --> * {string} A comma-separated list of the trace event categories covered by this `Tracing` object. #### `tracing.disable()` <!-- YAML added: v10.0.0 --> Disables this `Tracing` object. Only trace event categories _not_ covered by other enabled `Tracing` objects and _not_ specified by the `--trace-event-categories` flag will be disabled. ```js const trace_events = require('node:trace_events'); const t1 = trace_events.createTracing({ categories: ['node', 'v8'] }); const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] }); t1.enable(); t2.enable(); // Prints 'node,node.perf,v8' console.log(trace_events.getEnabledCategories()); t2.disable(); // Will only disable emission of the 'node.perf' category // Prints 'node,v8' console.log(trace_events.getEnabledCategories()); ``` #### `tracing.enable()` <!-- YAML added: v10.0.0 --> Enables this `Tracing` object for the set of categories covered by the `Tracing` object. #### `tracing.enabled` <!-- YAML added: v10.0.0 --> * {boolean} `true` only if the `Tracing` object has been enabled. ### `trace_events.createTracing(options)` <!-- YAML added: v10.0.0 --> * `options` {Object} * `categories` {string\[]} An array of trace category names. Values included in the array are coerced to a string when possible. An error will be thrown if the value cannot be coerced. * Returns: {Tracing}. Creates and returns a `Tracing` object for the given set of `categories`. ```js const trace_events = require('node:trace_events'); const categories = ['node.perf', 'node.async_hooks']; const tracing = trace_events.createTracing({ categories }); tracing.enable(); // do stuff tracing.disable(); ``` ### `trace_events.getEnabledCategories()` <!-- YAML added: v10.0.0 --> * Returns: {string} Returns a comma-separated list of all currently-enabled trace event categories. The current set of enabled trace event categories is determined by the _union_ of all currently-enabled `Tracing` objects and any categories enabled using the `--trace-event-categories` flag. Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console. ```js const trace_events = require('node:trace_events'); const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] }); const t2 = trace_events.createTracing({ categories: ['node.perf'] }); const t3 = trace_events.createTracing({ categories: ['v8'] }); t1.enable(); t2.enable(); console.log(trace_events.getEnabledCategories()); ``` ## Examples ### Collect trace events data by inspector ```js 'use strict'; const { Session } = require('inspector'); const session = new Session(); session.connect(); function post(message, data) { return new Promise((resolve, reject) => { session.post(message, data, (err, result) => { if (err) reject(new Error(JSON.stringify(err))); else resolve(result); }); }); } async function collect() { const data = []; session.on('NodeTracing.dataCollected', (chunk) => data.push(chunk)); session.on('NodeTracing.tracingComplete', () => { // done }); const traceConfig = { includedCategories: ['v8'] }; await post('NodeTracing.start', { traceConfig }); // do something setTimeout(() => { post('NodeTracing.stop').then(() => { session.disconnect(); console.log(data); }); }, 1000); } collect(); ``` [Performance API]: perf_hooks.md [V8]: v8.md [`Worker`]: worker_threads.md#class-worker [`async_hooks`]: async_hooks.md