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

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

Issue 5314003: New Heap profiler: fix JSON serialization of aggregated profiles. (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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 List<HeapGraphPath*>* GetRetainingPaths(HeapEntry* entry); 699 List<HeapGraphPath*>* GetRetainingPaths(HeapEntry* entry);
700 List<HeapEntry*>* GetSortedEntriesList(); 700 List<HeapEntry*>* GetSortedEntriesList();
701 template<class Visitor> 701 template<class Visitor>
702 void IterateEntries(Visitor* visitor) { entries_.Iterate(visitor); } 702 void IterateEntries(Visitor* visitor) { entries_.Iterate(visitor); }
703 void SetDominatorsToSelf();
703 704
704 void Print(int max_depth); 705 void Print(int max_depth);
705 void PrintEntriesSize(); 706 void PrintEntriesSize();
706 707
707 static HeapObject* const kInternalRootObject; 708 static HeapObject* const kInternalRootObject;
708 static HeapObject* const kGcRootsObject; 709 static HeapObject* const kGcRootsObject;
709 710
710 private: 711 private:
711 HeapEntry* AddEntry(HeapObject* object, 712 HeapEntry* AddEntry(HeapObject* object,
712 HeapEntry::Type type, 713 HeapEntry::Type type,
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 friend class HeapSnapshotJSONSerializerIterator; 1071 friend class HeapSnapshotJSONSerializerIterator;
1071 1072
1072 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 1073 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
1073 }; 1074 };
1074 1075
1075 } } // namespace v8::internal 1076 } } // namespace v8::internal
1076 1077
1077 #endif // ENABLE_LOGGING_AND_PROFILING 1078 #endif // ENABLE_LOGGING_AND_PROFILING
1078 1079
1079 #endif // V8_PROFILE_GENERATOR_H_ 1080 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/heap-profiler.cc ('k') | src/profile-generator.cc » ('j') | src/profile-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698