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

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

Issue 166993002: Make a single HeapEntry per single JSArrayBuffer data in heap snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added a test. Created 6 years, 10 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 | « no previous file | src/heap-snapshot-generator.cc » ('j') | test/cctest/test-heap-profiler.cc » ('J')
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 SnapshottingProgressReportingInterface* progress, 379 SnapshottingProgressReportingInterface* progress,
380 v8::HeapProfiler::ObjectNameResolver* resolver); 380 v8::HeapProfiler::ObjectNameResolver* resolver);
381 virtual ~V8HeapExplorer(); 381 virtual ~V8HeapExplorer();
382 virtual HeapEntry* AllocateEntry(HeapThing ptr); 382 virtual HeapEntry* AllocateEntry(HeapThing ptr);
383 void AddRootEntries(SnapshotFillerInterface* filler); 383 void AddRootEntries(SnapshotFillerInterface* filler);
384 int EstimateObjectsCount(HeapIterator* iterator); 384 int EstimateObjectsCount(HeapIterator* iterator);
385 bool IterateAndExtractReferences(SnapshotFillerInterface* filler); 385 bool IterateAndExtractReferences(SnapshotFillerInterface* filler);
386 void TagGlobalObjects(); 386 void TagGlobalObjects();
387 void TagCodeObject(Code* code); 387 void TagCodeObject(Code* code);
388 void TagBuiltinCodeObject(Code* code, const char* name); 388 void TagBuiltinCodeObject(Code* code, const char* name);
389 HeapEntry* AddEntry(Address address,
390 HeapEntry::Type type,
391 const char* name,
392 int size);
389 393
390 static String* GetConstructorName(JSObject* object); 394 static String* GetConstructorName(JSObject* object);
391 395
392 static HeapObject* const kInternalRootObject; 396 static HeapObject* const kInternalRootObject;
393 397
394 private: 398 private:
395 HeapEntry* AddEntry(HeapObject* object); 399 HeapEntry* AddEntry(HeapObject* object);
396 HeapEntry* AddEntry(HeapObject* object, 400 HeapEntry* AddEntry(HeapObject* object,
397 HeapEntry::Type type, 401 HeapEntry::Type type,
398 const char* name); 402 const char* name);
399 HeapEntry* AddEntry(Address address,
400 HeapEntry::Type type,
401 const char* name,
402 int size);
403 403
404 const char* GetSystemEntryName(HeapObject* object); 404 const char* GetSystemEntryName(HeapObject* object);
405 405
406 void ExtractReferences(HeapObject* obj); 406 void ExtractReferences(HeapObject* obj);
407 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); 407 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy);
408 void ExtractJSObjectReferences(int entry, JSObject* js_obj); 408 void ExtractJSObjectReferences(int entry, JSObject* js_obj);
409 void ExtractStringReferences(int entry, String* obj); 409 void ExtractStringReferences(int entry, String* obj);
410 void ExtractContextReferences(int entry, Context* context); 410 void ExtractContextReferences(int entry, Context* context);
411 void ExtractMapReferences(int entry, Map* map); 411 void ExtractMapReferences(int entry, Map* map);
412 void ExtractSharedFunctionInfoReferences(int entry, 412 void ExtractSharedFunctionInfoReferences(int entry,
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 friend class HeapSnapshotJSONSerializerEnumerator; 642 friend class HeapSnapshotJSONSerializerEnumerator;
643 friend class HeapSnapshotJSONSerializerIterator; 643 friend class HeapSnapshotJSONSerializerIterator;
644 644
645 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 645 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
646 }; 646 };
647 647
648 648
649 } } // namespace v8::internal 649 } } // namespace v8::internal
650 650
651 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ 651 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap-snapshot-generator.cc » ('j') | test/cctest/test-heap-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698