Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 630ffd1ceaede7a6661d47fe4af990282895c967..09884894e87a87880249cb691d4cfbc0f062dc69 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())); |