#include "base/test/trace_to_file.h"
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/memory/ref_counted_memory.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/trace_event/trace_buffer.h"
#include "base/trace_event/trace_log.h"
namespace base {
namespace test {
TraceToFile::TraceToFile() : … { … }
TraceToFile::~TraceToFile() { … }
void TraceToFile::BeginTracingFromCommandLineOptions() { … }
void TraceToFile::BeginTracing(const FilePath& path,
const std::string& categories) { … }
void TraceToFile::WriteFileHeader() { … }
void TraceToFile::AppendFileFooter() { … }
void TraceToFile::TraceOutputCallback(const std::string& data) { … }
static void OnTraceDataCollected(
OnceClosure quit_closure,
trace_event::TraceResultBuffer* buffer,
const scoped_refptr<RefCountedString>& json_events_str,
bool has_more_events) { … }
void TraceToFile::EndTracingIfNeeded() { … }
}
}