• Home
  • Raw
  • Download

Lines Matching refs:CpuProfiler

16 using i::CpuProfiler;
232 CpuProfiler::Setup(); in TEST()
233 CpuProfiler::StartProfiling("1"); in TEST()
234 CpuProfiler::StopProfiling("2"); in TEST()
235 CpuProfiler::StartProfiling("1"); in TEST()
236 CpuProfiler::StopProfiling(""); in TEST()
237 CpuProfiler::TearDown(); in TEST()
287 CpuProfiler::Setup(); in TEST()
288 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
289 CpuProfiler::DeleteAllProfiles(); in TEST()
290 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
292 CpuProfiler::StartProfiling("1"); in TEST()
293 CpuProfiler::StopProfiling("1"); in TEST()
294 CHECK_EQ(1, CpuProfiler::GetProfilesCount()); in TEST()
295 CpuProfiler::DeleteAllProfiles(); in TEST()
296 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
297 CpuProfiler::StartProfiling("1"); in TEST()
298 CpuProfiler::StartProfiling("2"); in TEST()
299 CpuProfiler::StopProfiling("2"); in TEST()
300 CpuProfiler::StopProfiling("1"); in TEST()
301 CHECK_EQ(2, CpuProfiler::GetProfilesCount()); in TEST()
302 CpuProfiler::DeleteAllProfiles(); in TEST()
303 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
306 CpuProfiler::StartProfiling("1"); in TEST()
307 CpuProfiler::StartProfiling("2"); in TEST()
308 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
309 CpuProfiler::DeleteAllProfiles(); in TEST()
310 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
312 CpuProfiler::TearDown(); in TEST()
320 CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); in TEST()
322 v8::CpuProfiler::StartProfiling(name1); in TEST()
323 const v8::CpuProfile* p1 = v8::CpuProfiler::StopProfiling(name1); in TEST()
325 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
327 CHECK_EQ(p1, v8::CpuProfiler::FindProfile(uid1)); in TEST()
329 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
330 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); in TEST()
333 v8::CpuProfiler::StartProfiling(name2); in TEST()
334 const v8::CpuProfile* p2 = v8::CpuProfiler::StopProfiling(name2); in TEST()
336 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
339 CHECK_EQ(p2, v8::CpuProfiler::FindProfile(uid2)); in TEST()
340 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); in TEST()
342 v8::CpuProfiler::StartProfiling(name3); in TEST()
343 const v8::CpuProfile* p3 = v8::CpuProfiler::StopProfiling(name3); in TEST()
345 CHECK_EQ(2, v8::CpuProfiler::GetProfilesCount()); in TEST()
348 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); in TEST()
349 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); in TEST()
351 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
352 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); in TEST()
353 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); in TEST()
355 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
356 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid3)); in TEST()
357 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); in TEST()
358 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); in TEST()
366 CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); in TEST()
368 v8::CpuProfiler::StartProfiling(name1); in TEST()
369 const v8::CpuProfile* p1 = v8::CpuProfiler::StopProfiling(name1); in TEST()
371 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
373 CHECK_EQ(p1, v8::CpuProfiler::FindProfile(uid1)); in TEST()
375 const v8::CpuProfile* p1_t1 = v8::CpuProfiler::FindProfile(uid1, token1); in TEST()
378 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
380 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
381 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); in TEST()
382 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1, token1)); in TEST()
384 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
387 v8::CpuProfiler::StartProfiling(name2); in TEST()
389 const v8::CpuProfile* p2_t2 = v8::CpuProfiler::StopProfiling(name2, token2); in TEST()
391 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
394 const v8::CpuProfile* p2 = v8::CpuProfiler::FindProfile(uid2); in TEST()
397 v8::CpuProfiler::StartProfiling(name3); in TEST()
398 const v8::CpuProfile* p3 = v8::CpuProfiler::StopProfiling(name3); in TEST()
400 CHECK_EQ(2, v8::CpuProfiler::GetProfilesCount()); in TEST()
403 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); in TEST()
405 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
406 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); in TEST()
407 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); in TEST()
409 CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); in TEST()
410 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); in TEST()
411 CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); in TEST()
413 CHECK_EQ(0, CpuProfiler::GetProfilesCount()); in TEST()
414 CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid3)); in TEST()