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

Side by Side Diff: src/profile-generator.h

Issue 5537001: New Heap Profiler: add API method for finding a graph node by id. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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
OLDNEW
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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 HeapObject* object, int children_count, int retainers_count); 689 HeapObject* object, int children_count, int retainers_count);
690 HeapEntry* AddEntry(HeapEntry::Type type, 690 HeapEntry* AddEntry(HeapEntry::Type type,
691 const char* name, 691 const char* name,
692 uint64_t id, 692 uint64_t id,
693 int size, 693 int size,
694 int children_count, 694 int children_count,
695 int retainers_count); 695 int retainers_count);
696 void ApproximateRetainedSizes(); 696 void ApproximateRetainedSizes();
697 void ClearPaint(); 697 void ClearPaint();
698 HeapSnapshotsDiff* CompareWith(HeapSnapshot* snapshot); 698 HeapSnapshotsDiff* CompareWith(HeapSnapshot* snapshot);
699 HeapEntry* GetEntryById(uint64_t id);
699 List<HeapGraphPath*>* GetRetainingPaths(HeapEntry* entry); 700 List<HeapGraphPath*>* GetRetainingPaths(HeapEntry* entry);
700 List<HeapEntry*>* GetSortedEntriesList(); 701 List<HeapEntry*>* GetSortedEntriesList();
701 template<class Visitor> 702 template<class Visitor>
702 void IterateEntries(Visitor* visitor) { entries_.Iterate(visitor); } 703 void IterateEntries(Visitor* visitor) { entries_.Iterate(visitor); }
703 void SetDominatorsToSelf(); 704 void SetDominatorsToSelf();
704 705
705 void Print(int max_depth); 706 void Print(int max_depth);
706 void PrintEntriesSize(); 707 void PrintEntriesSize();
707 708
708 static HeapObject* const kInternalRootObject; 709 static HeapObject* const kInternalRootObject;
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 }; 1075 };
1075 1076
1076 1077
1077 String* GetConstructorNameForHeapProfile(JSObject* object); 1078 String* GetConstructorNameForHeapProfile(JSObject* object);
1078 1079
1079 } } // namespace v8::internal 1080 } } // namespace v8::internal
1080 1081
1081 #endif // ENABLE_LOGGING_AND_PROFILING 1082 #endif // ENABLE_LOGGING_AND_PROFILING
1082 1083
1083 #endif // V8_PROFILE_GENERATOR_H_ 1084 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/profile-generator.cc » ('j') | src/profile-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698