#include "base/test/test_trace_processor.h"
#include <string_view>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/test/chrome_track_event.descriptor.h"
#include "base/test/perfetto_sql_stdlib.h"
#include "base/trace_event/trace_log.h"
#include "third_party/perfetto/protos/perfetto/trace/extension_descriptor.pbzero.h"
namespace base::test {
namespace {
void EmitChromeTrackEventDescriptor() { … }
std::string kChromeSqlModuleName = …;
constexpr char kSaveTraceSwitch[] = …;
TestTraceProcessorImpl::PerfettoSQLModule GetChromeStdlib() { … }
}
TraceConfig DefaultTraceConfig(std::string_view category_filter_string,
bool privacy_filtering) { … }
TestTraceProcessor::TestTraceProcessor() { … }
TestTraceProcessor::~TestTraceProcessor() = default;
void TestTraceProcessor::StartTrace(std::string_view category_filter_string,
bool privacy_filtering) { … }
void TestTraceProcessor::StartTrace(const TraceConfig& config,
perfetto::BackendType backend) { … }
absl::Status TestTraceProcessor::StopAndParseTrace() { … }
base::expected<TestTraceProcessor::QueryResult, std::string>
TestTraceProcessor::RunQuery(const std::string& query) { … }
}