Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 5088075dfa46b3d75602c5e8e52b9fe41e5f50fa..64b1bd4dee1e38883f1eec84df89dbb7480649fc 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -1854,7 +1854,7 @@ RawObject* Object::Allocate(intptr_t cls_id, |
} |
const Class& cls = Class::Handle(class_table->At(cls_id)); |
if (cls.TraceAllocation(isolate)) { |
- Profiler::RecordAllocation(thread, cls_id); |
+ Profiler::SampleAllocation(thread, cls_id); |
} |
NoSafepointScope no_safepoint; |
InitializeObject(address, cls_id, size, (isolate == Dart::vm_isolate())); |