summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/v8-3.25_profiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting/v8-3.25_profiler.h')
-rw-r--r--src/mongo/scripting/v8-3.25_profiler.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mongo/scripting/v8-3.25_profiler.h b/src/mongo/scripting/v8-3.25_profiler.h
index a54b1e5823b..99d045662ff 100644
--- a/src/mongo/scripting/v8-3.25_profiler.h
+++ b/src/mongo/scripting/v8-3.25_profiler.h
@@ -36,23 +36,23 @@
namespace mongo {
- /** Collect CPU Profiling data from v8. */
- class V8CpuProfiler {
- public:
- /** Start the CPU profiler */
- void start(v8::Isolate* isolate, const StringData name);
+/** Collect CPU Profiling data from v8. */
+class V8CpuProfiler {
+public:
+ /** Start the CPU profiler */
+ void start(v8::Isolate* isolate, const StringData name);
- /** Stop the CPU profiler */
- void stop(v8::Isolate* isolate, const StringData name);
+ /** Stop the CPU profiler */
+ void stop(v8::Isolate* isolate, 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;
+};
}