|
Cleanup histogram classes mixing SetFlags into FactoryGet arguments
Generic cleanup of histogram class, renaming *FactoryGet to FactoryGet,
along with reformatting.
The macros were cleaned up to use common sub-macros rather than
repeating code as much.
Removed ThreadSafeHistogram (and associated ASSET_HISTOGRAM macros)
since this class was not getting used.
I introduced UMA_HISTOGRAM_ENUMERATION to support the common use
of LinearHistograms to count various enumerated values.
I added a Flags argument to all the FactoryGet routines to help avoid
needing to call SetFlags each time a new sample is Add()ed. This also
simplifies the code.
This will all help prepare for a "don't histogram at all" macro setting
so that I can test the impact of the histogram macro calls on
performance (since there are now so many active histograms).
BUG= 31206
r=raman.tenneti
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35295
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+302 lines, -669 lines) |
Patch |
 |
M |
base/histogram.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
13 chunks |
+94 lines, -196 lines |
0 comments
|
Download
|
 |
M |
base/histogram.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
19 chunks |
+45 lines, -107 lines |
0 comments
|
Download
|
 |
M |
base/histogram_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
9 chunks |
+49 lines, -135 lines |
0 comments
|
Download
|
 |
M |
base/message_loop.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_browser_application_mac.mm
|
View
|
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_browser_application_mac_unittest.mm
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/diagnostics/sqlite_diagnostics.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/jankometer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/metrics/metrics_service.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/net/dns_host_info.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+21 lines, -40 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/buffered_resource_handler.cc
|
View
|
4
5
6
7
8
|
1 chunk |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ssl/ssl_blocking_page.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/render_thread.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/base/connection_type_histograms.cc
|
View
|
1
2
3
|
1 chunk |
+8 lines, -18 lines |
0 comments
|
Download
|
 |
M |
net/base/mime_sniffer.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/base/sdch_manager.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/histogram_macros.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/ftp/ftp_network_transaction.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+11 lines, -23 lines |
0 comments
|
Download
|
 |
M |
net/ftp/ftp_server_type_histograms.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+12 lines, -24 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_transaction.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+11 lines, -28 lines |
0 comments
|
Download
|
 |
M |
net/socket_stream/socket_stream_metrics.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
net/socket_stream/socket_stream_metrics_unittest.cc
|
View
|
|
3 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|