From e2439e51aff617451b318891f351773c6c1c1639 Mon Sep 17 00:00:00 2001 From: Andrey Kvochko Date: Fri, 27 Oct 2017 13:27:14 +0300 Subject: [PATCH] Add a TODO to report classes as they are first encountered --- src/interpret/heaptrack_interpret.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interpret/heaptrack_interpret.cpp b/src/interpret/heaptrack_interpret.cpp index cb66c28..fcb3642 100644 --- a/src/interpret/heaptrack_interpret.cpp +++ b/src/interpret/heaptrack_interpret.cpp @@ -710,6 +710,8 @@ int main(int /*argc*/, char** /*argv*/) } // ensure class is encountered + // TODO: arrays are not reported to the profiler in ClassLoadFinished, so they will be reported in the trace here + // instead of the next case. We should figure out how to add them to the trace earlier on. const auto classId = data.addClass(classPointer); if (classId == 0 && classPointer != 0) { cerr << "[W] Unknown class id (" << classPointer << ") here: " << reader.line() << endl; -- 2.7.4