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

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

Issue 23468021: move HEAP to /test (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/factory.cc ('k') | src/isolate.h » ('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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 return 579 return
580 sizeof(*this) + 580 sizeof(*this) +
581 sizeof(HashMap::Entry) * entries_map_.capacity() + 581 sizeof(HashMap::Entry) * entries_map_.capacity() +
582 GetMemoryUsedByList(entries_) + 582 GetMemoryUsedByList(entries_) +
583 GetMemoryUsedByList(time_intervals_); 583 GetMemoryUsedByList(time_intervals_);
584 } 584 }
585 585
586 586
587 HeapSnapshotsCollection::HeapSnapshotsCollection(Heap* heap) 587 HeapSnapshotsCollection::HeapSnapshotsCollection(Heap* heap)
588 : is_tracking_objects_(false), 588 : is_tracking_objects_(false),
589 names_(heap),
589 ids_(heap) { 590 ids_(heap) {
590 } 591 }
591 592
592 593
593 static void DeleteHeapSnapshot(HeapSnapshot** snapshot_ptr) { 594 static void DeleteHeapSnapshot(HeapSnapshot** snapshot_ptr) {
594 delete *snapshot_ptr; 595 delete *snapshot_ptr;
595 } 596 }
596 597
597 598
598 HeapSnapshotsCollection::~HeapSnapshotsCollection() { 599 HeapSnapshotsCollection::~HeapSnapshotsCollection() {
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 2720
2720 2721
2721 void HeapSnapshotJSONSerializer::SortHashMap( 2722 void HeapSnapshotJSONSerializer::SortHashMap(
2722 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 2723 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
2723 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 2724 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
2724 sorted_entries->Add(p); 2725 sorted_entries->Add(p);
2725 sorted_entries->Sort(SortUsingEntryValue); 2726 sorted_entries->Sort(SortUsingEntryValue);
2726 } 2727 }
2727 2728
2728 } } // namespace v8::internal 2729 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698