| 67 | BENCHMARK(ParseHeapDump); |
| 68 | |
| 69 | static void MergeHeapDump(benchmark::State& state) { |
| 70 | BenchmarkHelper helper; |
| 71 | JavaScriptHeapDumpBuilder builder; |
| 72 | helper.populateHeapDumpBuilder(builder); |
| 73 | auto heapDump = builder.build(); |
| 74 | |
| 75 | for (auto _ : state) { |
| 76 | JavaScriptHeapDumpBuilder builder; |
| 77 | SimpleExceptionTracker exceptionTracker; |
| 78 | builder.appendDump(heapDump.data(), heapDump.size(), exceptionTracker); |
| 79 | builder.appendDump(heapDump.data(), heapDump.size(), exceptionTracker); |
| 80 | builder.appendDump(heapDump.data(), heapDump.size(), exceptionTracker); |
| 81 | benchmark::DoNotOptimize(builder.build()); |
| 82 | } |
| 83 | } |
| 84 | BENCHMARK(MergeHeapDump); |
| 85 | |
| 86 | BENCHMARK_MAIN(); |
nothing calls this directly
no test coverage detected