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

Side by Side Diff: src/heap-profiler.h

Issue 13430003: Deprecate HeapSnapshot type (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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/heap-profiler.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 2009-2010 the V8 project authors. All rights reserved. 1 // Copyright 2009-2010 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class HeapProfiler { 47 class HeapProfiler {
48 public: 48 public:
49 explicit HeapProfiler(Heap* heap); 49 explicit HeapProfiler(Heap* heap);
50 ~HeapProfiler(); 50 ~HeapProfiler();
51 51
52 size_t GetMemorySizeUsedByProfiler(); 52 size_t GetMemorySizeUsedByProfiler();
53 53
54 HeapSnapshot* TakeSnapshot( 54 HeapSnapshot* TakeSnapshot(
55 const char* name, 55 const char* name,
56 int type,
57 v8::ActivityControl* control, 56 v8::ActivityControl* control,
58 v8::HeapProfiler::ObjectNameResolver* resolver); 57 v8::HeapProfiler::ObjectNameResolver* resolver);
59 HeapSnapshot* TakeSnapshot( 58 HeapSnapshot* TakeSnapshot(
60 String* name, 59 String* name,
61 int type,
62 v8::ActivityControl* control, 60 v8::ActivityControl* control,
63 v8::HeapProfiler::ObjectNameResolver* resolver); 61 v8::HeapProfiler::ObjectNameResolver* resolver);
64 62
65 void StartHeapObjectsTracking(); 63 void StartHeapObjectsTracking();
66 void StopHeapObjectsTracking(); 64 void StopHeapObjectsTracking();
67 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream); 65 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream);
68 int GetSnapshotsCount(); 66 int GetSnapshotsCount();
69 HeapSnapshot* GetSnapshot(int index); 67 HeapSnapshot* GetSnapshot(int index);
70 HeapSnapshot* FindSnapshot(unsigned uid); 68 HeapSnapshot* FindSnapshot(unsigned uid);
71 SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); 69 SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj);
(...skipping 14 matching lines...) Expand all
86 Heap* heap() const { return snapshots_->heap(); } 84 Heap* heap() const { return snapshots_->heap(); }
87 85
88 HeapSnapshotsCollection* snapshots_; 86 HeapSnapshotsCollection* snapshots_;
89 unsigned next_snapshot_uid_; 87 unsigned next_snapshot_uid_;
90 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; 88 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_;
91 }; 89 };
92 90
93 } } // namespace v8::internal 91 } } // namespace v8::internal
94 92
95 #endif // V8_HEAP_PROFILER_H_ 93 #endif // V8_HEAP_PROFILER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698