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

Side by Side Diff: runtime/vm/profiler.cc

Issue 1920263002: Print only native stack trace when crashing in IsInstantiated (debugging code) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: fix Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/address_sanitizer.h" 5 #include "platform/address_sanitizer.h"
6 #include "platform/memory_sanitizer.h" 6 #include "platform/memory_sanitizer.h"
7 #include "platform/utils.h" 7 #include "platform/utils.h"
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 } else { 999 } else {
1000 ProfilerDartStackWalker dart_stack_walker(isolate, 1000 ProfilerDartStackWalker dart_stack_walker(isolate,
1001 NULL, 1001 NULL,
1002 NULL, 1002 NULL,
1003 stack_lower, 1003 stack_lower,
1004 stack_upper, 1004 stack_upper,
1005 pc, 1005 pc,
1006 fp, 1006 fp,
1007 sp); 1007 sp);
1008 } 1008 }
1009 OS::Print("-- End of DumpStackTrace");
1009 } 1010 }
1010 1011
1011 1012
1012 void Profiler::SampleAllocation(Thread* thread, intptr_t cid) { 1013 void Profiler::SampleAllocation(Thread* thread, intptr_t cid) {
1013 ASSERT(thread != NULL); 1014 ASSERT(thread != NULL);
1014 OSThread* os_thread = thread->os_thread(); 1015 OSThread* os_thread = thread->os_thread();
1015 ASSERT(os_thread != NULL); 1016 ASSERT(os_thread != NULL);
1016 Isolate* isolate = thread->isolate(); 1017 Isolate* isolate = thread->isolate();
1017 if (!CheckIsolate(isolate)) { 1018 if (!CheckIsolate(isolate)) {
1018 return; 1019 return;
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 1564
1564 1565
1565 ProcessedSampleBuffer::ProcessedSampleBuffer() 1566 ProcessedSampleBuffer::ProcessedSampleBuffer()
1566 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { 1567 : code_lookup_table_(new CodeLookupTable(Thread::Current())) {
1567 ASSERT(code_lookup_table_ != NULL); 1568 ASSERT(code_lookup_table_ != NULL);
1568 } 1569 }
1569 1570
1570 #endif // !PRODUCT 1571 #endif // !PRODUCT
1571 1572
1572 } // namespace dart 1573 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698