Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Unified Diff: runtime/vm/profiler_service.cc

Issue 2774403002: Dump information when we hit the weird assertion failure in profiler (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler_service.cc
diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc
index e750b2c573ed036de4a197b2490653a12a83d956..12699165e77093718595c33cae73c96a18d3f92b 100644
--- a/runtime/vm/profiler_service.cc
+++ b/runtime/vm/profiler_service.cc
@@ -1621,6 +1621,17 @@ class ProfileBuilder : public ValueObject {
return current;
}
+ if (!code.is_optimized()) {
+ OS::PrintErr("Code that should be optimized is not. Please file a bug\n");
+ OS::PrintErr("Code object: %s\n", code.ToCString());
+ OS::PrintErr("Inlined functions length: %" Pd "\n",
+ inlined_functions->length());
+ for (intptr_t i = 0; i < inlined_functions->length(); i++) {
+ OS::PrintErr("IF[%" Pd "] = %s\n", i,
+ (*inlined_functions)[i]->ToFullyQualifiedCString());
+ }
+ }
+
ASSERT(code.is_optimized());
if (inclusive_tree_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698