summaryrefslogtreecommitdiff
path: root/deps/v8/src/api.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-04-23 12:05:36 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-04-23 12:05:36 -0700
commite72b7b8002c487d32f3a651687acca13f2009b99 (patch)
tree81a6aacbf385709a83cd095c04ec7ba44bb754bc /deps/v8/src/api.cc
parent7a34afba773a09c7862759872905657ec9629351 (diff)
downloadnode-e72b7b8002c487d32f3a651687acca13f2009b99.tar.gz
Upgrade V8 to 2.2.4.2
Diffstat (limited to 'deps/v8/src/api.cc')
-rw-r--r--deps/v8/src/api.cc16
1 files changed, 14 insertions, 2 deletions
diff --git a/deps/v8/src/api.cc b/deps/v8/src/api.cc
index 47950ebe1..4752a4425 100644
--- a/deps/v8/src/api.cc
+++ b/deps/v8/src/api.cc
@@ -4027,7 +4027,7 @@ Local<Context> Debug::GetDebugContext() {
#endif // ENABLE_DEBUGGER_SUPPORT
-#ifdef ENABLE_CPP_PROFILES_PROCESSOR
+#ifdef ENABLE_LOGGING_AND_PROFILING
Handle<String> CpuProfileNode::GetFunctionName() const {
IsDeadCheck("v8::CpuProfileNode::GetFunctionName");
@@ -4058,6 +4058,18 @@ int CpuProfileNode::GetLineNumber() const {
}
+double CpuProfileNode::GetTotalTime() const {
+ IsDeadCheck("v8::CpuProfileNode::GetTotalTime");
+ return reinterpret_cast<const i::ProfileNode*>(this)->GetTotalMillis();
+}
+
+
+double CpuProfileNode::GetSelfTime() const {
+ IsDeadCheck("v8::CpuProfileNode::GetSelfTime");
+ return reinterpret_cast<const i::ProfileNode*>(this)->GetSelfMillis();
+}
+
+
double CpuProfileNode::GetTotalSamplesCount() const {
IsDeadCheck("v8::CpuProfileNode::GetTotalSamplesCount");
return reinterpret_cast<const i::ProfileNode*>(this)->total_ticks();
@@ -4148,7 +4160,7 @@ const CpuProfile* CpuProfiler::StopProfiling(Handle<String> title) {
i::CpuProfiler::StopProfiling(*Utils::OpenHandle(*title)));
}
-#endif // ENABLE_CPP_PROFILES_PROCESSOR
+#endif // ENABLE_LOGGING_AND_PROFILING
namespace internal {