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

Unified Diff: src/profile-generator.h

Issue 12475016: Maintain API compatibility with older versions of V8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform-win32.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profile-generator.h
diff --git a/src/profile-generator.h b/src/profile-generator.h
index 4ddb75337e62435dd3b65a1e304b85af49b410b3..b128dad4a87c527e64244dc962fd6dcdb04681bb 100644
--- a/src/profile-generator.h
+++ b/src/profile-generator.h
@@ -150,7 +150,6 @@ class ProfileNode {
INLINE(const List<ProfileNode*>* children() const) { return &children_list_; }
double GetSelfMillis() const;
double GetTotalMillis() const;
- unsigned id() const { return id_; }
void Print(int indent);
@@ -171,7 +170,6 @@ class ProfileNode {
// Mapping from CodeEntry* to ProfileNode*
HashMap children_;
List<ProfileNode*> children_list_;
- unsigned id_;
DISALLOW_COPY_AND_ASSIGN(ProfileNode);
};
@@ -182,7 +180,7 @@ class ProfileTree {
ProfileTree();
~ProfileTree();
- ProfileNode* AddPathFromEnd(const Vector<CodeEntry*>& path);
+ void AddPathFromEnd(const Vector<CodeEntry*>& path);
void AddPathFromStart(const Vector<CodeEntry*>& path);
void CalculateTotalTicks();
void FilteredClone(ProfileTree* src, int security_token_id);
@@ -193,8 +191,6 @@ class ProfileTree {
ProfileNode* root() const { return root_; }
void SetTickRatePerMs(double ticks_per_ms);
- unsigned next_node_id() { return next_node_id_++; }
-
void ShortPrint();
void Print() {
root_->Print(0);
@@ -205,7 +201,6 @@ class ProfileTree {
void TraverseDepthFirst(Callback* callback);
CodeEntry root_entry_;
- unsigned next_node_id_;
ProfileNode* root_;
double ms_to_ticks_scale_;
@@ -215,8 +210,8 @@ class ProfileTree {
class CpuProfile {
public:
- CpuProfile(const char* title, unsigned uid, bool record_samples)
- : title_(title), uid_(uid), record_samples_(record_samples) { }
+ CpuProfile(const char* title, unsigned uid)
+ : title_(title), uid_(uid) { }
// Add pc -> ... -> main() call path to the profile.
void AddPath(const Vector<CodeEntry*>& path);
@@ -228,9 +223,6 @@ class CpuProfile {
INLINE(unsigned uid() const) { return uid_; }
INLINE(const ProfileTree* top_down() const) { return &top_down_; }
- INLINE(int samples_count() const) { return samples_.length(); }
- INLINE(ProfileNode* sample(int index) const) { return samples_.at(index); }
-
void UpdateTicksScale();
void ShortPrint();
@@ -239,8 +231,6 @@ class CpuProfile {
private:
const char* title_;
unsigned uid_;
- bool record_samples_;
- List<ProfileNode*> samples_;
ProfileTree top_down_;
DISALLOW_COPY_AND_ASSIGN(CpuProfile);
@@ -298,7 +288,8 @@ class CpuProfilesCollection {
CpuProfilesCollection();
~CpuProfilesCollection();
- bool StartProfiling(const char* title, unsigned uid, bool record_samples);
+ bool StartProfiling(const char* title, unsigned uid);
+ bool StartProfiling(String* title, unsigned uid);
CpuProfile* StopProfiling(int security_token_id,
const char* title,
double actual_sampling_rate);
« no previous file with comments | « src/platform-win32.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698