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

Unified Diff: include/v8-profiler.h

Issue 17524007: Delete deprecated methods from v8-profiler.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-profiler.h
diff --git a/include/v8-profiler.h b/include/v8-profiler.h
index d740df3bb7bd9e668666fd7a8b1360c1800c9289..5338fcd59c2c7711ef475e9949b22411c6374b6c 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -172,18 +172,12 @@ class V8EXPORT CpuProfiler {
* obtaining profiling results.
*/
- /** Deprecated. Use GetProfileCount instead. */
- V8_DEPRECATED(static int GetProfilesCount());
/**
* Returns the number of profiles collected (doesn't include
* profiles that are being collected at the moment of call.)
*/
int GetProfileCount();
- /** Deprecated. Use GetCpuProfile instead. */
- V8_DEPRECATED(static const CpuProfile* GetProfile(
- int index,
- Handle<Value> security_token = Handle<Value>()));
/** Deprecated. Use GetCpuProfile with single parameter. */
V8_DEPRECATED(const CpuProfile* GetCpuProfile(
int index,
@@ -191,18 +185,11 @@ class V8EXPORT CpuProfiler {
/** Returns a profile by index. */
const CpuProfile* GetCpuProfile(int index);
- /** Deprecated. Use FindProfile instead. */
- V8_DEPRECATED(static const CpuProfile* FindProfile(
- unsigned uid,
- Handle<Value> security_token = Handle<Value>()));
/** Returns a profile by uid. */
V8_DEPRECATED(const CpuProfile* FindCpuProfile(
unsigned uid,
Handle<Value> security_token = Handle<Value>()));
- /** Deprecated. Use StartCpuProfiling instead. */
- V8_DEPRECATED(static void StartProfiling(Handle<String> title,
- bool record_samples = false));
/**
* Starts collecting CPU profile. Title may be an empty string. It
* is allowed to have several profiles being collected at
@@ -216,10 +203,6 @@ class V8EXPORT CpuProfiler {
*/
void StartCpuProfiling(Handle<String> title, bool record_samples = false);
- /** Deprecated. Use StopCpuProfiling instead. */
- V8_DEPRECATED(static const CpuProfile* StopProfiling(
- Handle<String> title,
- Handle<Value> security_token = Handle<Value>()));
/**
* Deprecated. Use StopCpuProfiling with one parameter instead.
*/
@@ -232,8 +215,6 @@ class V8EXPORT CpuProfiler {
*/
const CpuProfile* StopCpuProfiling(Handle<String> title);
- /** Deprecated. Use DeleteAllCpuProfiles instead. */
- V8_DEPRECATED(static void DeleteAllProfiles());
/**
* Deletes all existing profiles, also cancelling all profiling
* activity. All previously returned pointers to profiles and their
@@ -346,16 +327,10 @@ class V8EXPORT HeapGraphNode {
*/
class V8EXPORT HeapSnapshot {
public:
- enum Type {
- kFull = 0 // Heap snapshot with all instances and references.
- };
enum SerializationFormat {
kJSON = 0 // See format description near 'Serialize' method.
};
- /** Deprecated. Returns kFull. */
- V8_DEPRECATED(Type GetType() const);
-
/** Returns heap snapshot UID (assigned by the profiler.) */
unsigned GetUid() const;
@@ -431,24 +406,15 @@ class V8EXPORT HeapProfiler {
typedef RetainedObjectInfo* (*WrapperInfoCallback)
(uint16_t class_id, Handle<Value> wrapper);
- /** Deprecated. Use GetSnapshotCount instead. */
- V8_DEPRECATED(static int GetSnapshotsCount());
/** Returns the number of snapshots taken. */
int GetSnapshotCount();
- /** Deprecated. Use GetHeapSnapshot instead. */
- V8_DEPRECATED(static const HeapSnapshot* GetSnapshot(int index));
/** Returns a snapshot by index. */
const HeapSnapshot* GetHeapSnapshot(int index);
- /** Deprecated. Use FindHeapSnapshot instead. */
- V8_DEPRECATED(static const HeapSnapshot* FindSnapshot(unsigned uid));
/** Returns a profile by uid. */
V8_DEPRECATED(const HeapSnapshot* FindHeapSnapshot(unsigned uid));
- /** Deprecated. Use GetObjectId instead. */
- V8_DEPRECATED(static SnapshotObjectId GetSnapshotObjectId(
- Handle<Value> value));
/**
* Returns SnapshotObjectId for a heap object referenced by |value| if
* it has been seen by the heap profiler, kUnknownObjectId otherwise.
@@ -476,12 +442,6 @@ class V8EXPORT HeapProfiler {
virtual ~ObjectNameResolver() {}
};
- /** Deprecated. Use TakeHeapSnapshot instead. */
- V8_DEPRECATED(static const HeapSnapshot* TakeSnapshot(
- Handle<String> title,
- HeapSnapshot::Type type = HeapSnapshot::kFull,
- ActivityControl* control = NULL,
- ObjectNameResolver* global_object_name_resolver = NULL));
/**
* Takes a heap snapshot and returns it. Title may be an empty string.
*/
@@ -490,9 +450,6 @@ class V8EXPORT HeapProfiler {
ActivityControl* control = NULL,
ObjectNameResolver* global_object_name_resolver = NULL);
-
- /** Deprecated. Use StartTrackingHeapObjects instead. */
- V8_DEPRECATED(static void StartHeapObjectsTracking());
/**
* Starts tracking of heap objects population statistics. After calling
* this method, all heap objects relocations done by the garbage collector
@@ -500,9 +457,6 @@ class V8EXPORT HeapProfiler {
*/
void StartTrackingHeapObjects();
- /** Deprecated. Use GetHeapStats instead. */
- V8_DEPRECATED(static SnapshotObjectId PushHeapObjectsStats(
- OutputStream* stream));
/**
* Adds a new time interval entry to the aggregated statistics array. The
* time interval entry contains information on the current heap objects
@@ -517,8 +471,6 @@ class V8EXPORT HeapProfiler {
*/
SnapshotObjectId GetHeapStats(OutputStream* stream);
- /** Deprecated. Use StopTrackingHeapObjects instead. */
- V8_DEPRECATED(static void StopHeapObjectsTracking());
/**
* Stops tracking of heap objects population statistics, cleans up all
* collected data. StartHeapObjectsTracking must be called again prior to
@@ -526,18 +478,12 @@ class V8EXPORT HeapProfiler {
*/
void StopTrackingHeapObjects();
- /** Deprecated. Use DeleteAllHeapSnapshots instead. */
- V8_DEPRECATED(static void DeleteAllSnapshots());
/**
* Deletes all snapshots taken. All previously returned pointers to
* snapshots and their contents become invalid after this call.
*/
void DeleteAllHeapSnapshots();
- /** Deprecated. Use SetWrapperClassInfoProvider instead. */
- V8_DEPRECATED(static void DefineWrapperClass(
- uint16_t class_id,
- WrapperInfoCallback callback));
/** Binds a callback to embedder's class ID. */
void SetWrapperClassInfoProvider(
uint16_t class_id,
@@ -550,13 +496,6 @@ class V8EXPORT HeapProfiler {
*/
static const uint16_t kPersistentHandleNoClassId = 0;
- /**
- * Deprecated. Returns the number of currently existing persistent handles.
- */
- V8_DEPRECATED(static int GetPersistentHandleCount());
-
- /** Deprecated. Use GetHeapProfilerMemorySize instead. */
- V8_DEPRECATED(static size_t GetMemorySizeUsedByProfiler());
/** Returns memory used for profiler internal data and snapshots. */
size_t GetProfilerMemorySize();
@@ -590,7 +529,7 @@ class V8EXPORT HeapProfiler {
* objects for heap snapshots, he can do it in a GC prologue
* handler, and / or by assigning wrapper class ids in the following way:
*
- * 1. Bind a callback to class id by calling DefineWrapperClass.
+ * 1. Bind a callback to class id by calling SetWrapperClassInfoProvider.
* 2. Call SetWrapperClassId on certain persistent handles.
*
* V8 takes ownership of RetainedObjectInfo instances passed to it and
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698