OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 } // namespace | 101 } // namespace |
102 | 102 |
103 TEST(CodeEvents) { | 103 TEST(CodeEvents) { |
104 InitializeVM(); | 104 InitializeVM(); |
105 i::Isolate* isolate = i::Isolate::Current(); | 105 i::Isolate* isolate = i::Isolate::Current(); |
106 i::Heap* heap = isolate->heap(); | 106 i::Heap* heap = isolate->heap(); |
107 i::Factory* factory = isolate->factory(); | 107 i::Factory* factory = isolate->factory(); |
108 TestSetup test_setup; | 108 TestSetup test_setup; |
109 CpuProfilesCollection profiles; | 109 CpuProfilesCollection profiles; |
110 profiles.StartProfiling("", 1, false); | 110 profiles.StartProfiling("", 1); |
111 ProfileGenerator generator(&profiles); | 111 ProfileGenerator generator(&profiles); |
112 ProfilerEventsProcessor processor(&generator); | 112 ProfilerEventsProcessor processor(&generator); |
113 processor.Start(); | 113 processor.Start(); |
114 | 114 |
115 // Enqueue code creation events. | 115 // Enqueue code creation events. |
116 i::HandleScope scope(isolate); | 116 i::HandleScope scope(isolate); |
117 const char* aaa_str = "aaa"; | 117 const char* aaa_str = "aaa"; |
118 i::Handle<i::String> aaa_name = factory->NewStringFromAscii( | 118 i::Handle<i::String> aaa_name = factory->NewStringFromAscii( |
119 i::Vector<const char>(aaa_str, i::StrLength(aaa_str))); | 119 i::Vector<const char>(aaa_str, i::StrLength(aaa_str))); |
120 processor.CodeCreateEvent(i::Logger::FUNCTION_TAG, | 120 processor.CodeCreateEvent(i::Logger::FUNCTION_TAG, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 | 162 |
163 template<typename T> | 163 template<typename T> |
164 static int CompareProfileNodes(const T* p1, const T* p2) { | 164 static int CompareProfileNodes(const T* p1, const T* p2) { |
165 return strcmp((*p1)->entry()->name(), (*p2)->entry()->name()); | 165 return strcmp((*p1)->entry()->name(), (*p2)->entry()->name()); |
166 } | 166 } |
167 | 167 |
168 TEST(TickEvents) { | 168 TEST(TickEvents) { |
169 TestSetup test_setup; | 169 TestSetup test_setup; |
170 CpuProfilesCollection profiles; | 170 CpuProfilesCollection profiles; |
171 profiles.StartProfiling("", 1, false); | 171 profiles.StartProfiling("", 1); |
172 ProfileGenerator generator(&profiles); | 172 ProfileGenerator generator(&profiles); |
173 ProfilerEventsProcessor processor(&generator); | 173 ProfilerEventsProcessor processor(&generator); |
174 processor.Start(); | 174 processor.Start(); |
175 | 175 |
176 processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, | 176 processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, |
177 "bbb", | 177 "bbb", |
178 ToAddress(0x1200), | 178 ToAddress(0x1200), |
179 0x80); | 179 0x80); |
180 processor.CodeCreateEvent(i::Logger::STUB_TAG, 5, ToAddress(0x1300), 0x10); | 180 processor.CodeCreateEvent(i::Logger::STUB_TAG, 5, ToAddress(0x1300), 0x10); |
181 processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, | 181 processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, |
(...skipping 30 matching lines...) Expand all Loading... |
212 top_down_stub_children->last()->children(); | 212 top_down_stub_children->last()->children(); |
213 CHECK_EQ(0, top_down_ddd_children->length()); | 213 CHECK_EQ(0, top_down_ddd_children->length()); |
214 } | 214 } |
215 | 215 |
216 | 216 |
217 // http://crbug/51594 | 217 // http://crbug/51594 |
218 // This test must not crash. | 218 // This test must not crash. |
219 TEST(CrashIfStoppingLastNonExistentProfile) { | 219 TEST(CrashIfStoppingLastNonExistentProfile) { |
220 InitializeVM(); | 220 InitializeVM(); |
221 TestSetup test_setup; | 221 TestSetup test_setup; |
222 CpuProfiler* profiler = i::Isolate::Current()->cpu_profiler(); | 222 CpuProfiler::SetUp(); |
223 profiler->StartProfiling("1"); | 223 CpuProfiler::StartProfiling("1"); |
224 profiler->StopProfiling("2"); | 224 CpuProfiler::StopProfiling("2"); |
225 profiler->StartProfiling("1"); | 225 CpuProfiler::StartProfiling("1"); |
226 profiler->StopProfiling(""); | 226 CpuProfiler::StopProfiling(""); |
| 227 CpuProfiler::TearDown(); |
227 } | 228 } |
228 | 229 |
229 | 230 |
230 // http://code.google.com/p/v8/issues/detail?id=1398 | 231 // http://code.google.com/p/v8/issues/detail?id=1398 |
231 // Long stacks (exceeding max frames limit) must not be erased. | 232 // Long stacks (exceeding max frames limit) must not be erased. |
232 TEST(Issue1398) { | 233 TEST(Issue1398) { |
233 TestSetup test_setup; | 234 TestSetup test_setup; |
234 CpuProfilesCollection profiles; | 235 CpuProfilesCollection profiles; |
235 profiles.StartProfiling("", 1, false); | 236 profiles.StartProfiling("", 1); |
236 ProfileGenerator generator(&profiles); | 237 ProfileGenerator generator(&profiles); |
237 ProfilerEventsProcessor processor(&generator); | 238 ProfilerEventsProcessor processor(&generator); |
238 processor.Start(); | 239 processor.Start(); |
239 | 240 |
240 processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, | 241 processor.CodeCreateEvent(i::Logger::BUILTIN_TAG, |
241 "bbb", | 242 "bbb", |
242 ToAddress(0x1200), | 243 ToAddress(0x1200), |
243 0x80); | 244 0x80); |
244 | 245 |
245 i::TickSample* sample = processor.TickSampleEvent(); | 246 i::TickSample* sample = processor.TickSampleEvent(); |
(...skipping 17 matching lines...) Expand all Loading... |
263 ++actual_depth; | 264 ++actual_depth; |
264 } | 265 } |
265 | 266 |
266 CHECK_EQ(1 + i::TickSample::kMaxFramesCount, actual_depth); // +1 for PC. | 267 CHECK_EQ(1 + i::TickSample::kMaxFramesCount, actual_depth); // +1 for PC. |
267 } | 268 } |
268 | 269 |
269 | 270 |
270 TEST(DeleteAllCpuProfiles) { | 271 TEST(DeleteAllCpuProfiles) { |
271 InitializeVM(); | 272 InitializeVM(); |
272 TestSetup test_setup; | 273 TestSetup test_setup; |
273 CpuProfiler* profiler = i::Isolate::Current()->cpu_profiler(); | 274 CpuProfiler::SetUp(); |
274 CHECK_EQ(0, profiler->GetProfilesCount()); | 275 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
275 profiler->DeleteAllProfiles(); | 276 CpuProfiler::DeleteAllProfiles(); |
276 CHECK_EQ(0, profiler->GetProfilesCount()); | 277 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
277 | 278 |
278 profiler->StartProfiling("1"); | 279 CpuProfiler::StartProfiling("1"); |
279 profiler->StopProfiling("1"); | 280 CpuProfiler::StopProfiling("1"); |
280 CHECK_EQ(1, profiler->GetProfilesCount()); | 281 CHECK_EQ(1, CpuProfiler::GetProfilesCount()); |
281 profiler->DeleteAllProfiles(); | 282 CpuProfiler::DeleteAllProfiles(); |
282 CHECK_EQ(0, profiler->GetProfilesCount()); | 283 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
283 profiler->StartProfiling("1"); | 284 CpuProfiler::StartProfiling("1"); |
284 profiler->StartProfiling("2"); | 285 CpuProfiler::StartProfiling("2"); |
285 profiler->StopProfiling("2"); | 286 CpuProfiler::StopProfiling("2"); |
286 profiler->StopProfiling("1"); | 287 CpuProfiler::StopProfiling("1"); |
287 CHECK_EQ(2, profiler->GetProfilesCount()); | 288 CHECK_EQ(2, CpuProfiler::GetProfilesCount()); |
288 profiler->DeleteAllProfiles(); | 289 CpuProfiler::DeleteAllProfiles(); |
289 CHECK_EQ(0, profiler->GetProfilesCount()); | 290 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
290 | 291 |
291 // Test profiling cancellation by the 'delete' command. | 292 // Test profiling cancellation by the 'delete' command. |
292 profiler->StartProfiling("1"); | 293 CpuProfiler::StartProfiling("1"); |
293 profiler->StartProfiling("2"); | 294 CpuProfiler::StartProfiling("2"); |
294 CHECK_EQ(0, profiler->GetProfilesCount()); | 295 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
295 profiler->DeleteAllProfiles(); | 296 CpuProfiler::DeleteAllProfiles(); |
296 CHECK_EQ(0, profiler->GetProfilesCount()); | 297 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
| 298 |
| 299 CpuProfiler::TearDown(); |
297 } | 300 } |
298 | 301 |
299 | 302 |
300 TEST(DeleteCpuProfile) { | 303 TEST(DeleteCpuProfile) { |
301 LocalContext env; | 304 LocalContext env; |
302 v8::HandleScope scope(env->GetIsolate()); | 305 v8::HandleScope scope(env->GetIsolate()); |
303 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); | |
304 | 306 |
305 CHECK_EQ(0, cpu_profiler->GetProfileCount()); | 307 CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); |
306 v8::Local<v8::String> name1 = v8::String::New("1"); | 308 v8::Local<v8::String> name1 = v8::String::New("1"); |
307 cpu_profiler->StartCpuProfiling(name1); | 309 v8::CpuProfiler::StartProfiling(name1); |
308 const v8::CpuProfile* p1 = cpu_profiler->StopCpuProfiling(name1); | 310 const v8::CpuProfile* p1 = v8::CpuProfiler::StopProfiling(name1); |
309 CHECK_NE(NULL, p1); | 311 CHECK_NE(NULL, p1); |
310 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 312 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
311 unsigned uid1 = p1->GetUid(); | 313 unsigned uid1 = p1->GetUid(); |
312 CHECK_EQ(p1, cpu_profiler->FindCpuProfile(uid1)); | 314 CHECK_EQ(p1, v8::CpuProfiler::FindProfile(uid1)); |
313 const_cast<v8::CpuProfile*>(p1)->Delete(); | 315 const_cast<v8::CpuProfile*>(p1)->Delete(); |
314 CHECK_EQ(0, cpu_profiler->GetProfileCount()); | 316 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
315 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid1)); | 317 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); |
316 | 318 |
317 v8::Local<v8::String> name2 = v8::String::New("2"); | 319 v8::Local<v8::String> name2 = v8::String::New("2"); |
318 cpu_profiler->StartCpuProfiling(name2); | 320 v8::CpuProfiler::StartProfiling(name2); |
319 const v8::CpuProfile* p2 = cpu_profiler->StopCpuProfiling(name2); | 321 const v8::CpuProfile* p2 = v8::CpuProfiler::StopProfiling(name2); |
320 CHECK_NE(NULL, p2); | 322 CHECK_NE(NULL, p2); |
321 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 323 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
322 unsigned uid2 = p2->GetUid(); | 324 unsigned uid2 = p2->GetUid(); |
323 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid2)); | 325 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid2)); |
324 CHECK_EQ(p2, cpu_profiler->FindCpuProfile(uid2)); | 326 CHECK_EQ(p2, v8::CpuProfiler::FindProfile(uid2)); |
325 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid1)); | 327 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); |
326 v8::Local<v8::String> name3 = v8::String::New("3"); | 328 v8::Local<v8::String> name3 = v8::String::New("3"); |
327 cpu_profiler->StartCpuProfiling(name3); | 329 v8::CpuProfiler::StartProfiling(name3); |
328 const v8::CpuProfile* p3 = cpu_profiler->StopCpuProfiling(name3); | 330 const v8::CpuProfile* p3 = v8::CpuProfiler::StopProfiling(name3); |
329 CHECK_NE(NULL, p3); | 331 CHECK_NE(NULL, p3); |
330 CHECK_EQ(2, cpu_profiler->GetProfileCount()); | 332 CHECK_EQ(2, v8::CpuProfiler::GetProfilesCount()); |
331 unsigned uid3 = p3->GetUid(); | 333 unsigned uid3 = p3->GetUid(); |
332 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid3)); | 334 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid3)); |
333 CHECK_EQ(p3, cpu_profiler->FindCpuProfile(uid3)); | 335 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); |
334 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid1)); | 336 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); |
335 const_cast<v8::CpuProfile*>(p2)->Delete(); | 337 const_cast<v8::CpuProfile*>(p2)->Delete(); |
336 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 338 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
337 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid2)); | 339 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); |
338 CHECK_EQ(p3, cpu_profiler->FindCpuProfile(uid3)); | 340 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); |
339 const_cast<v8::CpuProfile*>(p3)->Delete(); | 341 const_cast<v8::CpuProfile*>(p3)->Delete(); |
340 CHECK_EQ(0, cpu_profiler->GetProfileCount()); | 342 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
341 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid3)); | 343 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid3)); |
342 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid2)); | 344 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); |
343 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid1)); | 345 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); |
344 } | 346 } |
345 | 347 |
346 | 348 |
347 TEST(DeleteCpuProfileDifferentTokens) { | 349 TEST(DeleteCpuProfileDifferentTokens) { |
348 LocalContext env; | 350 LocalContext env; |
349 v8::HandleScope scope(env->GetIsolate()); | 351 v8::HandleScope scope(env->GetIsolate()); |
350 v8::CpuProfiler* cpu_profiler = env->GetIsolate()->GetCpuProfiler(); | |
351 | 352 |
352 CHECK_EQ(0, cpu_profiler->GetProfileCount()); | 353 CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); |
353 v8::Local<v8::String> name1 = v8::String::New("1"); | 354 v8::Local<v8::String> name1 = v8::String::New("1"); |
354 cpu_profiler->StartCpuProfiling(name1); | 355 v8::CpuProfiler::StartProfiling(name1); |
355 const v8::CpuProfile* p1 = cpu_profiler->StopCpuProfiling(name1); | 356 const v8::CpuProfile* p1 = v8::CpuProfiler::StopProfiling(name1); |
356 CHECK_NE(NULL, p1); | 357 CHECK_NE(NULL, p1); |
357 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 358 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
358 unsigned uid1 = p1->GetUid(); | 359 unsigned uid1 = p1->GetUid(); |
359 CHECK_EQ(p1, cpu_profiler->FindCpuProfile(uid1)); | 360 CHECK_EQ(p1, v8::CpuProfiler::FindProfile(uid1)); |
360 v8::Local<v8::String> token1 = v8::String::New("token1"); | 361 v8::Local<v8::String> token1 = v8::String::New("token1"); |
361 const v8::CpuProfile* p1_t1 = cpu_profiler->FindCpuProfile(uid1, token1); | 362 const v8::CpuProfile* p1_t1 = v8::CpuProfiler::FindProfile(uid1, token1); |
362 CHECK_NE(NULL, p1_t1); | 363 CHECK_NE(NULL, p1_t1); |
363 CHECK_NE(p1, p1_t1); | 364 CHECK_NE(p1, p1_t1); |
364 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 365 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
365 const_cast<v8::CpuProfile*>(p1)->Delete(); | 366 const_cast<v8::CpuProfile*>(p1)->Delete(); |
366 CHECK_EQ(0, cpu_profiler->GetProfileCount()); | 367 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
367 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid1)); | 368 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); |
368 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid1, token1)); | 369 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1, token1)); |
369 const_cast<v8::CpuProfile*>(p1_t1)->Delete(); | 370 const_cast<v8::CpuProfile*>(p1_t1)->Delete(); |
370 CHECK_EQ(0, cpu_profiler->GetProfileCount()); | 371 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
371 | 372 |
372 v8::Local<v8::String> name2 = v8::String::New("2"); | 373 v8::Local<v8::String> name2 = v8::String::New("2"); |
373 cpu_profiler->StartCpuProfiling(name2); | 374 v8::CpuProfiler::StartProfiling(name2); |
374 v8::Local<v8::String> token2 = v8::String::New("token2"); | 375 v8::Local<v8::String> token2 = v8::String::New("token2"); |
375 const v8::CpuProfile* p2_t2 = cpu_profiler->StopCpuProfiling(name2, token2); | 376 const v8::CpuProfile* p2_t2 = v8::CpuProfiler::StopProfiling(name2, token2); |
376 CHECK_NE(NULL, p2_t2); | 377 CHECK_NE(NULL, p2_t2); |
377 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 378 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
378 unsigned uid2 = p2_t2->GetUid(); | 379 unsigned uid2 = p2_t2->GetUid(); |
379 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid2)); | 380 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid2)); |
380 const v8::CpuProfile* p2 = cpu_profiler->FindCpuProfile(uid2); | 381 const v8::CpuProfile* p2 = v8::CpuProfiler::FindProfile(uid2); |
381 CHECK_NE(p2_t2, p2); | 382 CHECK_NE(p2_t2, p2); |
382 v8::Local<v8::String> name3 = v8::String::New("3"); | 383 v8::Local<v8::String> name3 = v8::String::New("3"); |
383 cpu_profiler->StartCpuProfiling(name3); | 384 v8::CpuProfiler::StartProfiling(name3); |
384 const v8::CpuProfile* p3 = cpu_profiler->StopCpuProfiling(name3); | 385 const v8::CpuProfile* p3 = v8::CpuProfiler::StopProfiling(name3); |
385 CHECK_NE(NULL, p3); | 386 CHECK_NE(NULL, p3); |
386 CHECK_EQ(2, cpu_profiler->GetProfileCount()); | 387 CHECK_EQ(2, v8::CpuProfiler::GetProfilesCount()); |
387 unsigned uid3 = p3->GetUid(); | 388 unsigned uid3 = p3->GetUid(); |
388 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid3)); | 389 CHECK_NE(static_cast<int>(uid1), static_cast<int>(uid3)); |
389 CHECK_EQ(p3, cpu_profiler->FindCpuProfile(uid3)); | 390 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); |
390 const_cast<v8::CpuProfile*>(p2_t2)->Delete(); | 391 const_cast<v8::CpuProfile*>(p2_t2)->Delete(); |
391 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 392 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
392 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid2)); | 393 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); |
393 CHECK_EQ(p3, cpu_profiler->FindCpuProfile(uid3)); | 394 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); |
394 const_cast<v8::CpuProfile*>(p2)->Delete(); | 395 const_cast<v8::CpuProfile*>(p2)->Delete(); |
395 CHECK_EQ(1, cpu_profiler->GetProfileCount()); | 396 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); |
396 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid2)); | 397 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); |
397 CHECK_EQ(p3, cpu_profiler->FindCpuProfile(uid3)); | 398 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); |
398 const_cast<v8::CpuProfile*>(p3)->Delete(); | 399 const_cast<v8::CpuProfile*>(p3)->Delete(); |
399 CHECK_EQ(0, cpu_profiler->GetProfileCount()); | 400 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); |
400 CHECK_EQ(NULL, cpu_profiler->FindCpuProfile(uid3)); | 401 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid3)); |
401 } | 402 } |
OLD | NEW |