summaryrefslogtreecommitdiff
path: root/test/parallel/test-trace-events-vm.js
diff options
context:
space:
mode:
authorAli Ijaz Sheikh <ofrobots@google.com>2018-05-15 11:52:18 -0700
committerAli Ijaz Sheikh <ofrobots@google.com>2018-05-18 10:42:35 -0700
commit3ff723f940c9b18f281131fad1d0c967c45169dd (patch)
tree65a93544c3db2d00227d2e8a0a5e8f471876087d /test/parallel/test-trace-events-vm.js
parent42a4a606457e01df51943c9c1e68ceaf9cafa0fe (diff)
downloadandroid-node-v8-3ff723f940c9b18f281131fad1d0c967c45169dd.tar.gz
android-node-v8-3ff723f940c9b18f281131fad1d0c967c45169dd.tar.bz2
android-node-v8-3ff723f940c9b18f281131fad1d0c967c45169dd.zip
src: trace_events: support for metadata events
Add support for metadata events. At this point they are added to the main buffer. Emit a metadata event for the main thread. PR-URL: https://github.com/nodejs/node/pull/20757 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-trace-events-vm.js')
-rw-r--r--test/parallel/test-trace-events-vm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-trace-events-vm.js b/test/parallel/test-trace-events-vm.js
index fc7af34d88..3dc6e263e1 100644
--- a/test/parallel/test-trace-events-vm.js
+++ b/test/parallel/test-trace-events-vm.js
@@ -32,7 +32,8 @@ if (process.argv[2] === 'child') {
assert(common.fileExists(file));
fs.readFile(file, common.mustCall((err, data) => {
- const traces = JSON.parse(data.toString()).traceEvents;
+ const traces = JSON.parse(data.toString()).traceEvents
+ .filter((trace) => trace.cat !== '__metadata');
traces.forEach((trace) => {
assert.strictEqual(trace.pid, proc.pid);
assert(names.includes(trace.name));