Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(923)

Side by Side Diff: test/cctest/test-log-stack-tracer.cc

Issue 22412003: Support idle time in CPU profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment addressed Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-cpu-profiler.cc ('k') | tools/tickprocessor.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 150 }
151 151
152 152
153 void TraceExtension::JSTrace(const v8::FunctionCallbackInfo<v8::Value>& args) { 153 void TraceExtension::JSTrace(const v8::FunctionCallbackInfo<v8::Value>& args) {
154 DoTraceHideCEntryFPAddress(GetFP(args)); 154 DoTraceHideCEntryFPAddress(GetFP(args));
155 } 155 }
156 156
157 157
158 static Address GetJsEntrySp() { 158 static Address GetJsEntrySp() {
159 CHECK_NE(NULL, i::Isolate::Current()->thread_local_top()); 159 CHECK_NE(NULL, i::Isolate::Current()->thread_local_top());
160 return Isolate::js_entry_sp(i::Isolate::Current()->thread_local_top()); 160 return i::Isolate::Current()->js_entry_sp();
161 } 161 }
162 162
163 163
164 void TraceExtension::JSEntrySP( 164 void TraceExtension::JSEntrySP(
165 const v8::FunctionCallbackInfo<v8::Value>& args) { 165 const v8::FunctionCallbackInfo<v8::Value>& args) {
166 CHECK_NE(0, GetJsEntrySp()); 166 CHECK_NE(0, GetJsEntrySp());
167 } 167 }
168 168
169 169
170 void TraceExtension::JSEntrySPLevel2( 170 void TraceExtension::JSEntrySPLevel2(
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 CcTest::InitializeVM(TRACE_EXTENSION); 389 CcTest::InitializeVM(TRACE_EXTENSION);
390 v8::HandleScope scope(CcTest::isolate()); 390 v8::HandleScope scope(CcTest::isolate());
391 CHECK_EQ(0, GetJsEntrySp()); 391 CHECK_EQ(0, GetJsEntrySp());
392 CompileRun("a = 1; b = a + 1;"); 392 CompileRun("a = 1; b = a + 1;");
393 CHECK_EQ(0, GetJsEntrySp()); 393 CHECK_EQ(0, GetJsEntrySp());
394 CompileRun("js_entry_sp();"); 394 CompileRun("js_entry_sp();");
395 CHECK_EQ(0, GetJsEntrySp()); 395 CHECK_EQ(0, GetJsEntrySp());
396 CompileRun("js_entry_sp_level2();"); 396 CompileRun("js_entry_sp_level2();");
397 CHECK_EQ(0, GetJsEntrySp()); 397 CHECK_EQ(0, GetJsEntrySp());
398 } 398 }
OLDNEW
« no previous file with comments | « test/cctest/test-cpu-profiler.cc ('k') | tools/tickprocessor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698