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

Side by Side Diff: test/cctest/test-profile-generator.cc

Issue 7618040: Version 3.5.5. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 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-parsing.cc ('k') | test/cctest/test-unbound-queue.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // 2 //
3 // Tests of profiles generator and utilities. 3 // Tests of profiles generator and utilities.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 #include "profile-generator-inl.h" 6 #include "profile-generator-inl.h"
7 #include "cctest.h" 7 #include "cctest.h"
8 #include "../include/v8-profiler.h" 8 #include "../include/v8-profiler.h"
9 9
10 namespace i = v8::internal;
11
12 using i::CodeEntry; 10 using i::CodeEntry;
13 using i::CodeMap; 11 using i::CodeMap;
14 using i::CpuProfile; 12 using i::CpuProfile;
15 using i::CpuProfiler; 13 using i::CpuProfiler;
16 using i::CpuProfilesCollection; 14 using i::CpuProfilesCollection;
17 using i::ProfileNode; 15 using i::ProfileNode;
18 using i::ProfileTree; 16 using i::ProfileTree;
19 using i::ProfileGenerator; 17 using i::ProfileGenerator;
20 using i::SampleRateCalculator; 18 using i::SampleRateCalculator;
21 using i::TickSample; 19 using i::TickSample;
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 i::Vector<char> title = i::Vector<char>::New(16); 813 i::Vector<char> title = i::Vector<char>::New(16);
816 i::OS::SNPrintF(title, "%d", i); 814 i::OS::SNPrintF(title, "%d", i);
817 CHECK(collection.StartProfiling(title.start(), i + 1)); // UID must be > 0. 815 CHECK(collection.StartProfiling(title.start(), i + 1)); // UID must be > 0.
818 titles[i] = title.start(); 816 titles[i] = title.start();
819 } 817 }
820 CHECK(!collection.StartProfiling( 818 CHECK(!collection.StartProfiling(
821 "maximum", CpuProfilesCollection::kMaxSimultaneousProfiles + 1)); 819 "maximum", CpuProfilesCollection::kMaxSimultaneousProfiles + 1));
822 for (int i = 0; i < CpuProfilesCollection::kMaxSimultaneousProfiles; ++i) 820 for (int i = 0; i < CpuProfilesCollection::kMaxSimultaneousProfiles; ++i)
823 i::DeleteArray(titles[i]); 821 i::DeleteArray(titles[i]);
824 } 822 }
OLDNEW
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/cctest/test-unbound-queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698