| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7a31ae8 commit 732f9a7
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,14 +173,25 @@ DispatchResponse TracingAgent::stop() { | |||
| 173 | 173 | DispatchResponse TracingAgent::getCategories( | |
| 174 | 174 | std::unique_ptr<protocol::Array<String>>* categories) { | |
| 175 | 175 | *categories = Array<String>::create(); | |
| 176 | - categories->get()->addItem("node"); | ||
| 177 | - categories->get()->addItem("node.async"); | ||
| 178 | - categories->get()->addItem("node.bootstrap"); | ||
| 179 | - categories->get()->addItem("node.fs.sync"); | ||
| 180 | - categories->get()->addItem("node.perf"); | ||
| 181 | - categories->get()->addItem("node.perf.usertiming"); | ||
| 182 | - categories->get()->addItem("node.perf.timerify"); | ||
| 183 | - categories->get()->addItem("v8"); | ||
| 176 | + protocol::Array<String>* categories_list = categories->get(); | ||
| 177 | + categories_list->addItem("node"); | ||
| 178 | + categories_list->addItem("node.async_hooks"); | ||
| 179 | + categories_list->addItem("node.bootstrap"); | ||
| 180 | + categories_list->addItem("node.console"); | ||
| 181 | + categories_list->addItem("node.dns.native"); | ||
| 182 | + categories_list->addItem("node.net.native"); | ||
| 183 | + categories_list->addItem("node.environment"); | ||
| 184 | + categories_list->addItem("node.fs.sync"); | ||
| 185 | + categories_list->addItem("node.fs_dir.sync"); | ||
| 186 | + categories_list->addItem("node.fs.async"); | ||
| 187 | + categories_list->addItem("node.fs_dir.async"); | ||
| 188 | + categories_list->addItem("node.perf"); | ||
| 189 | + categories_list->addItem("node.perf.usertiming"); | ||
| 190 | + categories_list->addItem("node.perf.timerify"); | ||
| 191 | + categories_list->addItem("node.promises.rejections"); | ||
| 192 | + categories_list->addItem("node.vm.script"); | ||
| 193 | + categories_list->addItem("v8"); | ||
| 194 | + categories_list->addItem("node.http"); | ||
| 184 | 195 | return DispatchResponse::OK(); | |
| 185 | 196 | } | |
| 186 | 197 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,10 +48,25 @@ async function test() { | |||
| 48 | 48 | session.on('NodeTracing.dataCollected', (n) => traceNotification = n); | |
| 49 | 49 | session.on('NodeTracing.tracingComplete', () => tracingComplete = true); | |
| 50 | 50 | const { categories } = await post('NodeTracing.getCategories'); | |
| 51 | - compareIgnoringOrder(['node', 'node.async', 'node.bootstrap', 'node.fs.sync', | ||
| 52 | - 'node.perf', 'node.perf.usertiming', | ||
| 53 | - 'node.perf.timerify', 'v8'], | ||
| 54 | - categories); | ||
| 51 | + compareIgnoringOrder(['node', | ||
| 52 | + 'node.async_hooks', | ||
| 53 | + 'node.bootstrap', | ||
| 54 | + 'node.console', | ||
| 55 | + 'node.dns.native', | ||
| 56 | + 'node.net.native', | ||
| 57 | + 'node.environment', | ||
| 58 | + 'node.fs.sync', | ||
| 59 | + 'node.fs_dir.sync', | ||
| 60 | + 'node.fs.async', | ||
| 61 | + 'node.fs_dir.async', | ||
| 62 | + 'node.perf', | ||
| 63 | + 'node.perf.usertiming', | ||
| 64 | + 'node.perf.timerify', | ||
| 65 | + 'node.promises.rejections', | ||
| 66 | + 'node.vm.script', | ||
| 67 | + 'v8', | ||
| 68 | + 'node.http', | ||
| 69 | + ], categories); | ||
| 55 | 70 | ||
| 56 | 71 | const traceConfig = { includedCategories: ['v8'] }; | |
| 57 | 72 | await post('NodeTracing.start', { traceConfig }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments