#include "base/tracing/perfetto_platform.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/trace_event/trace_event.h"
#include "base/tracing/perfetto_task_runner.h"
#include "base/tracing_buildflags.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/android/build_info.h"
#endif
#if !BUILDFLAG(IS_NACL)
#include "third_party/perfetto/include/perfetto/ext/base/thread_task_runner.h"
#endif
namespace base {
namespace tracing {
namespace {
constexpr char kProcessNamePrefix[] = …;
}
PerfettoPlatform::PerfettoPlatform(PerfettoTaskRunner* task_runner)
: … { … }
PerfettoPlatform::~PerfettoPlatform() = default;
PerfettoPlatform::ThreadLocalObject*
PerfettoPlatform::GetOrCreateThreadLocalObject() { … }
std::unique_ptr<perfetto::base::TaskRunner> PerfettoPlatform::CreateTaskRunner(
const CreateTaskRunnerArgs&) { … }
std::string PerfettoPlatform::GetCurrentProcessName() { … }
perfetto::base::PlatformThreadId PerfettoPlatform::GetCurrentThreadId() { … }
}
}