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

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

Issue 9861018: Revert "This value is required for showing the heap snapshot delta in Summary view of DevTools.Prof… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/profile-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 17 matching lines...) Expand all
28 #ifndef V8_PROFILE_GENERATOR_H_ 28 #ifndef V8_PROFILE_GENERATOR_H_
29 #define V8_PROFILE_GENERATOR_H_ 29 #define V8_PROFILE_GENERATOR_H_
30 30
31 #include "allocation.h" 31 #include "allocation.h"
32 #include "hashmap.h" 32 #include "hashmap.h"
33 #include "../include/v8-profiler.h" 33 #include "../include/v8-profiler.h"
34 34
35 namespace v8 { 35 namespace v8 {
36 namespace internal { 36 namespace internal {
37 37
38 typedef uint32_t SnapshotObjectId;
39
38 class TokenEnumerator { 40 class TokenEnumerator {
39 public: 41 public:
40 TokenEnumerator(); 42 TokenEnumerator();
41 ~TokenEnumerator(); 43 ~TokenEnumerator();
42 int GetTokenId(Object* token); 44 int GetTokenId(Object* token);
43 45
44 static const int kNoSecurityToken = -1; 46 static const int kNoSecurityToken = -1;
45 static const int kInheritsSecurityToken = -2; 47 static const int kInheritsSecurityToken = -2;
46 48
47 private: 49 private:
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 HeapSnapshotsCollection* collection() { return collection_; } 640 HeapSnapshotsCollection* collection() { return collection_; }
639 Type type() { return type_; } 641 Type type() { return type_; }
640 const char* title() { return title_; } 642 const char* title() { return title_; }
641 unsigned uid() { return uid_; } 643 unsigned uid() { return uid_; }
642 HeapEntry* root() { return root_entry_; } 644 HeapEntry* root() { return root_entry_; }
643 HeapEntry* gc_roots() { return gc_roots_entry_; } 645 HeapEntry* gc_roots() { return gc_roots_entry_; }
644 HeapEntry* natives_root() { return natives_root_entry_; } 646 HeapEntry* natives_root() { return natives_root_entry_; }
645 HeapEntry* gc_subroot(int index) { return gc_subroot_entries_[index]; } 647 HeapEntry* gc_subroot(int index) { return gc_subroot_entries_[index]; }
646 List<HeapEntry*>* entries() { return &entries_; } 648 List<HeapEntry*>* entries() { return &entries_; }
647 size_t raw_entries_size() { return raw_entries_size_; } 649 size_t raw_entries_size() { return raw_entries_size_; }
648 SnapshotObjectId max_snapshot_js_object_id() const {
649 return max_snapshot_js_object_id_;
650 }
651 650
652 void AllocateEntries( 651 void AllocateEntries(
653 int entries_count, int children_count, int retainers_count); 652 int entries_count, int children_count, int retainers_count);
654 HeapEntry* AddEntry(HeapEntry::Type type, 653 HeapEntry* AddEntry(HeapEntry::Type type,
655 const char* name, 654 const char* name,
656 SnapshotObjectId id, 655 SnapshotObjectId id,
657 int size, 656 int size,
658 int children_count, 657 int children_count,
659 int retainers_count); 658 int retainers_count);
660 HeapEntry* AddRootEntry(int children_count); 659 HeapEntry* AddRootEntry(int children_count);
(...skipping 20 matching lines...) Expand all
681 const char* title_; 680 const char* title_;
682 unsigned uid_; 681 unsigned uid_;
683 HeapEntry* root_entry_; 682 HeapEntry* root_entry_;
684 HeapEntry* gc_roots_entry_; 683 HeapEntry* gc_roots_entry_;
685 HeapEntry* natives_root_entry_; 684 HeapEntry* natives_root_entry_;
686 HeapEntry* gc_subroot_entries_[VisitorSynchronization::kNumberOfSyncTags]; 685 HeapEntry* gc_subroot_entries_[VisitorSynchronization::kNumberOfSyncTags];
687 char* raw_entries_; 686 char* raw_entries_;
688 List<HeapEntry*> entries_; 687 List<HeapEntry*> entries_;
689 bool entries_sorted_; 688 bool entries_sorted_;
690 size_t raw_entries_size_; 689 size_t raw_entries_size_;
691 SnapshotObjectId max_snapshot_js_object_id_;
692 690
693 friend class HeapSnapshotTester; 691 friend class HeapSnapshotTester;
694 692
695 DISALLOW_COPY_AND_ASSIGN(HeapSnapshot); 693 DISALLOW_COPY_AND_ASSIGN(HeapSnapshot);
696 }; 694 };
697 695
698 696
699 class HeapObjectsMap { 697 class HeapObjectsMap {
700 public: 698 public:
701 HeapObjectsMap(); 699 HeapObjectsMap();
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 1156
1159 friend class HeapSnapshotJSONSerializerEnumerator; 1157 friend class HeapSnapshotJSONSerializerEnumerator;
1160 friend class HeapSnapshotJSONSerializerIterator; 1158 friend class HeapSnapshotJSONSerializerIterator;
1161 1159
1162 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 1160 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
1163 }; 1161 };
1164 1162
1165 } } // namespace v8::internal 1163 } } // namespace v8::internal
1166 1164
1167 #endif // V8_PROFILE_GENERATOR_H_ 1165 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698