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

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

Issue 10444137: Expose last seen heap object id via v8 public api. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: test was added Created 8 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 | « 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 static HeapSnapshot* TakeSnapshot(const char* name, 52 static HeapSnapshot* TakeSnapshot(const char* name,
53 int type, 53 int type,
54 v8::ActivityControl* control); 54 v8::ActivityControl* control);
55 static HeapSnapshot* TakeSnapshot(String* name, 55 static HeapSnapshot* TakeSnapshot(String* name,
56 int type, 56 int type,
57 v8::ActivityControl* control); 57 v8::ActivityControl* control);
58 58
59 static void StartHeapObjectsTracking(); 59 static void StartHeapObjectsTracking();
60 static void StopHeapObjectsTracking(); 60 static void StopHeapObjectsTracking();
61 static void PushHeapObjectsStats(OutputStream* stream); 61 static SnapshotObjectId PushHeapObjectsStats(OutputStream* stream);
62 static int GetSnapshotsCount(); 62 static int GetSnapshotsCount();
63 static HeapSnapshot* GetSnapshot(int index); 63 static HeapSnapshot* GetSnapshot(int index);
64 static HeapSnapshot* FindSnapshot(unsigned uid); 64 static HeapSnapshot* FindSnapshot(unsigned uid);
65 static SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); 65 static SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj);
66 static void DeleteAllSnapshots(); 66 static void DeleteAllSnapshots();
67 67
68 void ObjectMoveEvent(Address from, Address to); 68 void ObjectMoveEvent(Address from, Address to);
69 69
70 void DefineWrapperClass( 70 void DefineWrapperClass(
71 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); 71 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback);
(...skipping 10 matching lines...) Expand all
82 HeapSnapshot* TakeSnapshotImpl(const char* name, 82 HeapSnapshot* TakeSnapshotImpl(const char* name,
83 int type, 83 int type,
84 v8::ActivityControl* control); 84 v8::ActivityControl* control);
85 HeapSnapshot* TakeSnapshotImpl(String* name, 85 HeapSnapshot* TakeSnapshotImpl(String* name,
86 int type, 86 int type,
87 v8::ActivityControl* control); 87 v8::ActivityControl* control);
88 void ResetSnapshots(); 88 void ResetSnapshots();
89 89
90 void StartHeapObjectsTrackingImpl(); 90 void StartHeapObjectsTrackingImpl();
91 void StopHeapObjectsTrackingImpl(); 91 void StopHeapObjectsTrackingImpl();
92 void PushHeapObjectsStatsImpl(OutputStream* stream); 92 SnapshotObjectId PushHeapObjectsStatsImpl(OutputStream* stream);
93 93
94 HeapSnapshotsCollection* snapshots_; 94 HeapSnapshotsCollection* snapshots_;
95 unsigned next_snapshot_uid_; 95 unsigned next_snapshot_uid_;
96 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; 96 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_;
97 }; 97 };
98 98
99 } } // namespace v8::internal 99 } } // namespace v8::internal
100 100
101 #endif // V8_HEAP_PROFILER_H_ 101 #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