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

Side by Side Diff: src/heap-snapshot-generator.h

Issue 52643002: HeapProfiler: provide human readable names for code objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: style fix Created 7 years, 1 month 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 | « src/builtins.h ('k') | src/heap-snapshot-generator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 public: 440 public:
441 V8HeapExplorer(HeapSnapshot* snapshot, 441 V8HeapExplorer(HeapSnapshot* snapshot,
442 SnapshottingProgressReportingInterface* progress, 442 SnapshottingProgressReportingInterface* progress,
443 v8::HeapProfiler::ObjectNameResolver* resolver); 443 v8::HeapProfiler::ObjectNameResolver* resolver);
444 virtual ~V8HeapExplorer(); 444 virtual ~V8HeapExplorer();
445 virtual HeapEntry* AllocateEntry(HeapThing ptr); 445 virtual HeapEntry* AllocateEntry(HeapThing ptr);
446 void AddRootEntries(SnapshotFillerInterface* filler); 446 void AddRootEntries(SnapshotFillerInterface* filler);
447 int EstimateObjectsCount(HeapIterator* iterator); 447 int EstimateObjectsCount(HeapIterator* iterator);
448 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); 448 bool IterateAndExtractReferences(SnapshotFillerInterface* filler);
449 void TagGlobalObjects(); 449 void TagGlobalObjects();
450 void TagCodeObject(Code* code);
451 void TagCodeObject(Code* code, const char* external_name);
450 452
451 static String* GetConstructorName(JSObject* object); 453 static String* GetConstructorName(JSObject* object);
452 454
453 static HeapObject* const kInternalRootObject; 455 static HeapObject* const kInternalRootObject;
454 456
455 private: 457 private:
456 HeapEntry* AddEntry(HeapObject* object); 458 HeapEntry* AddEntry(HeapObject* object);
457 HeapEntry* AddEntry(HeapObject* object, 459 HeapEntry* AddEntry(HeapObject* object,
458 HeapEntry::Type type, 460 HeapEntry::Type type,
459 const char* name); 461 const char* name);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 friend class HeapSnapshotJSONSerializerIterator; 698 friend class HeapSnapshotJSONSerializerIterator;
697 699
698 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 700 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
699 }; 701 };
700 702
701 703
702 } } // namespace v8::internal 704 } } // namespace v8::internal
703 705
704 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ 706 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_
705 707
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698