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

Unified Diff: chrome/browser/net/websocket_experiment/websocket_experiment_runner.h

Issue 441027: Merge 32311 - Hold histograms in static variables instead of allocating heap.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/websocket_experiment/websocket_experiment_runner.h
===================================================================
--- chrome/browser/net/websocket_experiment/websocket_experiment_runner.h (revision 33184)
+++ chrome/browser/net/websocket_experiment/websocket_experiment_runner.h (working copy)
@@ -37,8 +37,6 @@
void Cancel();
private:
- typedef std::map<std::string, linked_ptr<Histogram> > HistogramMap;
-
enum State {
STATE_NONE,
STATE_IDLE,
@@ -51,28 +49,16 @@
friend class base::RefCountedThreadSafe<WebSocketExperimentRunner>;
void InitConfig();
- void InitHistograms();
void DoLoop();
void OnTaskCompleted(int result);
void UpdateTaskResultHistogram(const WebSocketExperimentTask* task);
- template<class HistogramType, typename HistogramSample>
- void InitHistogram(const char* type_name,
- HistogramSample min, HistogramSample max,
- size_t bucket_count);
-
- Histogram* GetHistogram(const std::string& type_name) const;
-
Config config_;
State next_state_;
State task_state_;
scoped_ptr<WebSocketExperimentTask> task_;
net::CompletionCallbackImpl<WebSocketExperimentRunner> task_callback_;
- HistogramMap ws_histograms_;
- HistogramMap wss_histograms_;
- HistogramMap ws_nondefault_histograms_;
-
DISALLOW_COPY_AND_ASSIGN(WebSocketExperimentRunner);
};
« no previous file with comments | « no previous file | chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698