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

Side by Side Diff: base/trace_event/memory_dump_request_args.cc

Issue 1282453002: [tracing] Reland of Throttle rate of heavy dumps and support to request light/heavy dumps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix IPC messages. Created 5 years, 4 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 | « base/trace_event/memory_dump_request_args.h ('k') | components/tracing/tracing_messages.h » ('j') | 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 "base/trace_event/memory_dump_request_args.h" 5 #include "base/trace_event/memory_dump_request_args.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace base { 9 namespace base {
10 namespace trace_event { 10 namespace trace_event {
11 11
12 // static 12 // static
13 const char* MemoryDumpTypeToString( 13 const char* MemoryDumpTypeToString(
14 const MemoryDumpType& dump_type) { 14 const MemoryDumpType& dump_type) {
15 switch (dump_type) { 15 switch (dump_type) {
16 case MemoryDumpType::TASK_BEGIN: 16 case MemoryDumpType::TASK_BEGIN:
17 return "TASK_BEGIN"; 17 return "TASK_BEGIN";
18 case MemoryDumpType::TASK_END: 18 case MemoryDumpType::TASK_END:
19 return "TASK_END"; 19 return "TASK_END";
20 case MemoryDumpType::PERIODIC_INTERVAL: 20 case MemoryDumpType::PERIODIC_INTERVAL:
21 return "PERIODIC_INTERVAL"; 21 return "PERIODIC_INTERVAL";
22 case MemoryDumpType::PERIODIC_INTERVAL_WITH_MMAPS:
23 return "PERIODIC_INTERVAL_WITH_MMAPS";
24 case MemoryDumpType::EXPLICITLY_TRIGGERED: 22 case MemoryDumpType::EXPLICITLY_TRIGGERED:
25 return "EXPLICITLY_TRIGGERED"; 23 return "EXPLICITLY_TRIGGERED";
26 } 24 }
27 NOTREACHED(); 25 NOTREACHED();
28 return "UNKNOWN"; 26 return "UNKNOWN";
29 } 27 }
30 28
31 } // namespace trace_event 29 } // namespace trace_event
32 } // namespace base 30 } // namespace base
OLDNEW
« no previous file with comments | « base/trace_event/memory_dump_request_args.h ('k') | components/tracing/tracing_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698