OLD | NEW |
(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 |
OLD | NEW |