Add ICU message format support
[chromium-blink-merge.git] / base / trace_event / memory_dump_request_args.cc
bloba24bc72671d7cce8900bef86626201c7e0f2b9d6
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.
5 #include "base/trace_event/memory_dump_request_args.h"
7 #include "base/logging.h"
9 namespace base {
10 namespace trace_event {
12 // static
13 const char* MemoryDumpTypeToString(
14 const MemoryDumpType& dump_type) {
15 switch (dump_type) {
16 case MemoryDumpType::TASK_BEGIN:
17 return "TASK_BEGIN";
18 case MemoryDumpType::TASK_END:
19 return "TASK_END";
20 case MemoryDumpType::PERIODIC_INTERVAL:
21 return "PERIODIC_INTERVAL";
22 case MemoryDumpType::PERIODIC_INTERVAL_WITH_MMAPS:
23 return "PERIODIC_INTERVAL_WITH_MMAPS";
24 case MemoryDumpType::EXPLICITLY_TRIGGERED:
25 return "EXPLICITLY_TRIGGERED";
27 NOTREACHED();
28 return "UNKNOWN";
31 } // namespace trace_event
32 } // namespace base