Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: content/browser/tracing/background_tracing_manager_impl.cc

Issue 2282013003: BackgroundTracing: Collect v8 runtime call stats from Benchmark Deep (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/tracing/background_tracing_manager_impl.h" 5 #include "content/browser/tracing/background_tracing_manager_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 } 532 }
533 533
534 std::string 534 std::string
535 BackgroundTracingManagerImpl::GetCategoryFilterStringForCategoryPreset( 535 BackgroundTracingManagerImpl::GetCategoryFilterStringForCategoryPreset(
536 BackgroundTracingConfigImpl::CategoryPreset preset) const { 536 BackgroundTracingConfigImpl::CategoryPreset preset) const {
537 switch (preset) { 537 switch (preset) {
538 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK: 538 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK:
539 return "benchmark,toplevel"; 539 return "benchmark,toplevel";
540 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_DEEP: 540 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_DEEP:
541 return "*,disabled-by-default-benchmark.detailed," 541 return "*,disabled-by-default-benchmark.detailed,"
542 "disabled-by-default-v8.cpu_profile"; 542 "disabled-by-default-v8.cpu_profile,"
543 "disabled-by-default-v8.runtime_stats";
543 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_GPU: 544 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_GPU:
544 return "benchmark,toplevel,gpu"; 545 return "benchmark,toplevel,gpu";
545 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_IPC: 546 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_IPC:
546 return "benchmark,toplevel,ipc"; 547 return "benchmark,toplevel,ipc";
547 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_STARTUP: 548 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_STARTUP:
548 return "benchmark,toplevel,startup,disabled-by-default-file," 549 return "benchmark,toplevel,startup,disabled-by-default-file,"
549 "disabled-by-default-toplevel.flow," 550 "disabled-by-default-toplevel.flow,"
550 "disabled-by-default-ipc.flow"; 551 "disabled-by-default-ipc.flow";
551 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_BLINK_GC: 552 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_BLINK_GC:
552 return "blink_gc,disabled-by-default-blink_gc"; 553 return "blink_gc,disabled-by-default-blink_gc";
553 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_MEMORY_HEAVY: 554 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_MEMORY_HEAVY:
554 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_MEMORY_LIGHT: 555 case BackgroundTracingConfigImpl::CategoryPreset::BENCHMARK_MEMORY_LIGHT:
555 return "-*,disabled-by-default-memory-infra"; 556 return "-*,disabled-by-default-memory-infra";
556 case BackgroundTracingConfigImpl::CategoryPreset:: 557 case BackgroundTracingConfigImpl::CategoryPreset::
557 BENCHMARK_EXECUTION_METRIC: 558 BENCHMARK_EXECUTION_METRIC:
558 return "blink.console,v8"; 559 return "blink.console,v8";
559 case BackgroundTracingConfigImpl::CategoryPreset::BLINK_STYLE: 560 case BackgroundTracingConfigImpl::CategoryPreset::BLINK_STYLE:
560 return "blink_style"; 561 return "blink_style";
561 case BackgroundTracingConfigImpl::CategoryPreset::CATEGORY_PRESET_UNSET: 562 case BackgroundTracingConfigImpl::CategoryPreset::CATEGORY_PRESET_UNSET:
562 NOTREACHED(); 563 NOTREACHED();
563 } 564 }
564 NOTREACHED(); 565 NOTREACHED();
565 return ""; 566 return "";
566 } 567 }
567 568
568 } // namspace content 569 } // namspace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698