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

Side by Side Diff: base/memory/memory_coordinator_client.cc

Issue 2466773002: memory coordinator: Add trace macros to track state changes (Closed)
Patch Set: comment Created 4 years, 1 month 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 2016 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/memory/memory_coordinator_client.h"
6
7 #include "base/logging.h"
8
9 namespace base {
10
11 const char* MemoryStateToString(MemoryState state) {
12 switch (state) {
13 case MemoryState::UNKNOWN:
14 return "unknown";
15 case MemoryState::NORMAL:
16 return "normal";
17 case MemoryState::THROTTLED:
18 return "throttled";
19 case MemoryState::SUSPENDED:
20 return "suspended";
21 default:
22 NOTREACHED();
23 }
24 return "";
25 }
26
27 } // namespace base
OLDNEW
« no previous file with comments | « base/memory/memory_coordinator_client.h ('k') | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698