#include "content/public/common/profiling.h"
#include "base/at_exit.h"
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/debug/profiler.h"
#include "base/functional/bind.h"
#include "base/lazy_instance.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/no_destructor.h"
#include "base/strings/string_util.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "content/public/common/content_switches.h"
namespace content {
namespace {
std::string GetProfileName() { … }
void FlushProfilingData(base::Thread* thread) { … }
class ProfilingThreadControl { … };
base::LazyInstance<ProfilingThreadControl>::Leaky g_flush_thread_control = …;
}
void Profiling::ProcessStarted() { … }
void Profiling::Start() { … }
void Profiling::Stop() { … }
bool Profiling::BeingProfiled() { … }
void Profiling::Toggle() { … }
}