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

Side by Side Diff: net/disk_cache/simple/simple_histogram_macros.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/disk_cache/simple/simple_entry_operation.cc ('k') | net/disk_cache/simple/simple_index.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_HISTOGRAM_MACROS_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_HISTOGRAM_MACROS_H_
7
8 #include "base/metrics/histogram.h"
9 #include "base/metrics/sparse_histogram.h"
10 #include "net/base/cache_type.h"
11
12 // This file contains macros used to report histograms. The main issue is that
13 // we want to have separate histograms for each type of cache (app, http, and
14 // media), while making it easy to report histograms and have all names
15 // precomputed.
16
17 #define SIMPLE_CACHE_THUNK(uma_type, args) UMA_HISTOGRAM_##uma_type args
18
19 // TODO(pasko): add histograms for shader cache as soon as it becomes possible
20 // for a user to get shader cache with the |SimpleBackendImpl| without altering
21 // any flags.
22 #define SIMPLE_CACHE_UMA(uma_type, uma_name, cache_type, ...) \
23 do { \
24 switch (cache_type) { \
25 case net::DISK_CACHE: \
26 SIMPLE_CACHE_THUNK( \
27 uma_type, ("SimpleCache.Http." uma_name, ##__VA_ARGS__)); \
28 break; \
29 case net::APP_CACHE: \
30 SIMPLE_CACHE_THUNK( \
31 uma_type, ("SimpleCache.App." uma_name, ##__VA_ARGS__)); \
32 break; \
33 case net::MEDIA_CACHE: \
34 SIMPLE_CACHE_THUNK( \
35 uma_type, ("SimpleCache.Media." uma_name, ##__VA_ARGS__)); \
36 break; \
37 case net::SHADER_CACHE: \
38 break; \
39 default: \
40 NOTREACHED(); \
41 break; \
42 } \
43 } while (0)
44
45 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_HISTOGRAM_MACROS_H_
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_entry_operation.cc ('k') | net/disk_cache/simple/simple_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698