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

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

Issue 15825019: Do not force GC on each objects tracking sample. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Made it calling GC once per second. Created 7 years, 6 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') | 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 return ComputeIntegerHash( 272 return ComputeIntegerHash(
273 static_cast<uint32_t>(reinterpret_cast<uintptr_t>(addr)), 273 static_cast<uint32_t>(reinterpret_cast<uintptr_t>(addr)),
274 v8::internal::kZeroHashSeed); 274 v8::internal::kZeroHashSeed);
275 } 275 }
276 276
277 SnapshotObjectId next_id_; 277 SnapshotObjectId next_id_;
278 HashMap entries_map_; 278 HashMap entries_map_;
279 List<EntryInfo> entries_; 279 List<EntryInfo> entries_;
280 List<TimeInterval> time_intervals_; 280 List<TimeInterval> time_intervals_;
281 Heap* heap_; 281 Heap* heap_;
282 double last_gc_time_;
282 283
283 DISALLOW_COPY_AND_ASSIGN(HeapObjectsMap); 284 DISALLOW_COPY_AND_ASSIGN(HeapObjectsMap);
284 }; 285 };
285 286
286 287
287 class HeapSnapshotsCollection { 288 class HeapSnapshotsCollection {
288 public: 289 public:
289 explicit HeapSnapshotsCollection(Heap* heap); 290 explicit HeapSnapshotsCollection(Heap* heap);
290 ~HeapSnapshotsCollection(); 291 ~HeapSnapshotsCollection();
291 292
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 friend class HeapSnapshotJSONSerializerIterator; 681 friend class HeapSnapshotJSONSerializerIterator;
681 682
682 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 683 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
683 }; 684 };
684 685
685 686
686 } } // namespace v8::internal 687 } } // namespace v8::internal
687 688
688 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ 689 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_
689 690
OLDNEW
« no previous file with comments | « no previous file | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698