Skip to content

Commit

Permalink
fixup! src: enable more detailed memory tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jul 13, 2018
1 parent 7cddb03 commit 736085f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/memory_tracker-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void MemoryTracker::TrackField(const char* name, const std::queue<T>& value) {
template <typename T, typename test_for_number, typename dummy>
void MemoryTracker::TrackField(const char* name, const T& value) {
// For numbers, creating new nodes is not worth the overhead.
CurrentNode()->size_ += sizeof(T);
TrackFieldWithSize(name, sizeof(T));
}

template <typename T, typename U>
Expand Down Expand Up @@ -97,7 +97,6 @@ void MemoryTracker::TrackField(const char* name,
}

void MemoryTracker::Track(const MemoryRetainer* value) {
v8::HandleScope handle_scope(isolate_);
value->MemoryInfo(this);
}

Expand Down

0 comments on commit 736085f

Please sign in to comment.