| 48 | BENCHMARK(BuildHeapDump); |
| 49 | |
| 50 | static void ParseHeapDump(benchmark::State& state) { |
| 51 | BenchmarkHelper helper; |
| 52 | JavaScriptHeapDumpBuilder builder; |
| 53 | helper.populateHeapDumpBuilder(builder); |
| 54 | auto heapDump = builder.build(); |
| 55 | |
| 56 | for (auto _ : state) { |
| 57 | SimpleExceptionTracker exceptionTracker; |
| 58 | JavaScriptHeapDumpParser parser(heapDump.data(), heapDump.size(), exceptionTracker); |
| 59 | |
| 60 | for (const auto& node : parser.getNodes()) { |
| 61 | for (const auto& edge : node.getEdges()) { |
| 62 | benchmark::DoNotOptimize(edge.getIdentifier()); |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | BENCHMARK(ParseHeapDump); |
| 68 | |
| 69 | static void MergeHeapDump(benchmark::State& state) { |
nothing calls this directly
no test coverage detected