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

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

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/trace_event/memory_dump_request_args.h"
6
7 #include "base/logging.h"
8
9 namespace base {
10 namespace trace_event {
11
12 // static
13 const char* MemoryDumpTypeToString(const MemoryDumpType& dump_type) {
14 switch (dump_type) {
15 case MemoryDumpType::TASK_BEGIN:
16 return "TASK_BEGIN";
17 case MemoryDumpType::TASK_END:
18 return "TASK_END";
19 case MemoryDumpType::PERIODIC_INTERVAL:
20 return "PERIODIC_INTERVAL";
21 case MemoryDumpType::PERIODIC_INTERVAL_WITH_MMAPS:
22 return "PERIODIC_INTERVAL_WITH_MMAPS";
23 case MemoryDumpType::EXPLICITLY_TRIGGERED:
24 return "EXPLICITLY_TRIGGERED";
25 }
26 NOTREACHED();
27 return "UNKNOWN";
28 }
29
30 } // namespace trace_event
31 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698