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

Unified Diff: chrome/renderer/renderer_main.cc

Issue 27034: Initial support for Renderer Side Histograms... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/renderer_histogram_snapshots.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_main.cc
===================================================================
--- chrome/renderer/renderer_main.cc (revision 10329)
+++ chrome/renderer/renderer_main.cc (working copy)
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/command_line.h"
+#include "base/histogram.h"
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/platform_thread.h"
@@ -89,6 +90,13 @@
HandleRendererErrorTestParameters(parsed_command_line);
+ // Initialize histogram statistics gathering system.
+ // Don't create StatisticsRecorde in the single process mode.
+ scoped_ptr<StatisticsRecorder> statistics;
+ if (!StatisticsRecorder::WasStarted()) {
+ statistics.reset(new StatisticsRecorder());
+ }
+
{
RenderProcess render_process;
bool run_loop = true;
« no previous file with comments | « chrome/renderer/renderer_histogram_snapshots.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698