Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
node-chrome-trace-event /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
child.js
787
B
-rw-r--r--
2021-04-08 18:02
event-log.js
946
B
-rw-r--r--
2021-04-08 18:02
hello.js
1.15
KB
-rw-r--r--
2021-04-08 18:02
object-mode.js
366
B
-rw-r--r--
2021-04-08 18:02
Save
Rename
/* * A first example showing trace-event usage. * We emit begin/end events for a single call to `doSomething()`. */ /* * First create the tracer `evt` that we'll use for instrumenting code. * * Notes: * - More realistically we'd stream these to an event log file (see * examples/event-log.js). This just shows you the default output. * - By default the emitted 'data' events are make up a JSON array of * event objects, suitable for piping directly to stdout or a file. * This format is as expected by * [`trace2html`](https://github.com/google/trace-viewer#readme). * - See examples/object-mode.js for raw event objects. * - See examples/child.js for a larger example. */ var evt = new (require("../dist/trace-event")).Tracer(); evt.on("data", function(data) { console.log("EVENT: %j", data); }); // Instrument code with evt.{begin|instant|end} calls. function doSomething(cb) { evt.begin({ name: "doSomething", id: "1" }); // Takes 1s to do all this processing for "something". setTimeout(function() { evt.end({ name: "doSomething", id: "1" }); cb(); }, 1000); } console.log("hi"); doSomething(function() { console.log("bye"); });