// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ #define CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ #include <string> #include "base/memory/raw_ptr.h" #include "base/values.h" #include "chrome/test/chromedriver/capabilities.h" #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" #include "chrome/test/chromedriver/command_listener.h" class Log; struct Session; // Translates DevTools profiler events into Log messages with info level. // // The message is a JSON string of the following structure: // { // "webview": <originating WebView ID>, // "message": { "method": "...", "params": { ... }} // DevTools message. // } // // Also translates buffered trace events into Log messages of info level with // the same structure if tracing categories are specified. class PerformanceLogger : public DevToolsEventListener, public CommandListener { … }; #endif // CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_