summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/v8_profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting/v8_profiler.h')
-rw-r--r--src/mongo/scripting/v8_profiler.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mongo/scripting/v8_profiler.h b/src/mongo/scripting/v8_profiler.h
index e510bf6c2b6..41efce4f42a 100644
--- a/src/mongo/scripting/v8_profiler.h
+++ b/src/mongo/scripting/v8_profiler.h
@@ -36,23 +36,23 @@
namespace mongo {
- /** Collect CPU Profiling data from v8. */
- class V8CpuProfiler {
- public:
- /** Start the CPU profiler */
- void start(const StringData name);
+/** Collect CPU Profiling data from v8. */
+class V8CpuProfiler {
+public:
+ /** Start the CPU profiler */
+ void start(const StringData name);
- /** Stop the CPU profiler */
- void stop(const StringData name);
+ /** Stop the CPU profiler */
+ void stop(const StringData name);
- /** Get the current cpu profile */
- const BSONArray fetch(const StringData name);
- private:
- void traverseDepthFirst(const v8::CpuProfileNode* cpuProfileNode,
- BSONArrayBuilder& arrayBuilder);
+ /** Get the current cpu profile */
+ const BSONArray fetch(const StringData name);
- typedef std::map<std::string, const v8::CpuProfile*> CpuProfileMap;
- CpuProfileMap _cpuProfiles;
- };
+private:
+ void traverseDepthFirst(const v8::CpuProfileNode* cpuProfileNode,
+ BSONArrayBuilder& arrayBuilder);
+ typedef std::map<std::string, const v8::CpuProfile*> CpuProfileMap;
+ CpuProfileMap _cpuProfiles;
+};
}