base/profiler/README.md
//base/profiler implements a statistical profiler for Chrome execution. It supports periodic sampling of thread stacks for the purpose of understanding how frequently different parts of the Chrome code are being executed. The profiler is used to collect execution information by UMA, for broad-scale profiling, and by Chrometto, for targeted profiling during tracing.
The primary entry point to this code is StackSamplingProfiler. This class regularly records the list of currently executing functions on a target thread. See the comments above that function for an overview of how to use the profiler.
The details are very platform-specific, but the major sub-components are