| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 12 #include "chrome/test/chromedriver/capabilities.h" | 12 #include "chrome/test/chromedriver/capabilities.h" |
| 13 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" | 13 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" |
| 14 #include "chrome/test/chromedriver/command_listener.h" | 14 #include "chrome/test/chromedriver/command_listener.h" |
| 15 | 15 |
| 16 class Log; | 16 class Log; |
| 17 struct Session; | 17 struct Session; |
| 18 | 18 |
| 19 // Translates DevTools profiler events into Log messages with info level. | 19 // Translates DevTools profiler events into Log messages with info level. |
| 20 // | 20 // |
| 21 // The message is a JSON string of the following structure: | 21 // The message is a JSON string of the following structure: |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 Log* log_; // The log where to create entries. | 84 Log* log_; // The log where to create entries. |
| 85 const Session* session_; | 85 const Session* session_; |
| 86 PerfLoggingPrefs prefs_; | 86 PerfLoggingPrefs prefs_; |
| 87 DevToolsClient* browser_client_; // Pointer to browser-wide |DevToolsClient|. | 87 DevToolsClient* browser_client_; // Pointer to browser-wide |DevToolsClient|. |
| 88 bool trace_buffering_; // True unless trace stopped and all events received. | 88 bool trace_buffering_; // True unless trace stopped and all events received. |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(PerformanceLogger); | 90 DISALLOW_COPY_AND_ASSIGN(PerformanceLogger); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ | 93 #endif // CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ |
| OLD | NEW |