Commit 39d32910 authored by yurys's avatar yurys Committed by Commit bot

Remove deprecated CpuProfiler methods

BUG=None
LOG=Y

Review URL: https://codereview.chromium.org/992193002

Cr-Commit-Position: refs/heads/master@{#27097}
parent 3ff7da93
......@@ -168,21 +168,12 @@ class V8_EXPORT CpuProfiler {
*/
void StartProfiling(Handle<String> title, bool record_samples = false);
/** Deprecated. Use StartProfiling instead. */
V8_DEPRECATED("Use StartProfiling",
void StartCpuProfiling(Handle<String> title,
bool record_samples = false));
/**
* Stops collecting CPU profile with a given title and returns it.
* If the title given is empty, finishes the last profile started.
*/
CpuProfile* StopProfiling(Handle<String> title);
/** Deprecated. Use StopProfiling instead. */
V8_DEPRECATED("Use StopProfiling",
const CpuProfile* StopCpuProfiling(Handle<String> title));
/**
* Tells the profiler whether the embedder is idle.
*/
......@@ -271,10 +262,6 @@ class V8_EXPORT HeapGraphNode {
*/
SnapshotObjectId GetId() const;
/** Returns node's own size, in bytes. */
V8_DEPRECATED("Use GetShallowSize instead",
int GetSelfSize() const);
/** Returns node's own size, in bytes. */
size_t GetShallowSize() const;
......
......@@ -7502,11 +7502,6 @@ void CpuProfiler::StartProfiling(Handle<String> title, bool record_samples) {
}
void CpuProfiler::StartCpuProfiling(Handle<String> title, bool record_samples) {
StartProfiling(title, record_samples);
}
CpuProfile* CpuProfiler::StopProfiling(Handle<String> title) {
return reinterpret_cast<CpuProfile*>(
reinterpret_cast<i::CpuProfiler*>(this)->StopProfiling(
......@@ -7514,11 +7509,6 @@ CpuProfile* CpuProfiler::StopProfiling(Handle<String> title) {
}
const CpuProfile* CpuProfiler::StopCpuProfiling(Handle<String> title) {
return StopProfiling(title);
}
void CpuProfiler::SetIdle(bool is_idle) {
i::Isolate* isolate = reinterpret_cast<i::CpuProfiler*>(this)->isolate();
v8::StateTag state = isolate->current_vm_state();
......@@ -7599,13 +7589,6 @@ SnapshotObjectId HeapGraphNode::GetId() const {
}
int HeapGraphNode::GetSelfSize() const {
size_t size = ToInternal(this)->self_size();
CHECK(size <= static_cast<size_t>(internal::kMaxInt));
return static_cast<int>(size);
}
size_t HeapGraphNode::GetShallowSize() const {
return ToInternal(this)->self_size();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment