Source profiling is now available in Observatory

84 views
Skip to first unread message

John McCutchan

unread,
Mar 15, 2016, 10:55:59 AM3/15/16
to Dart Misc
Hi Dartisans,

You can now see which lines of code are hot, in any source view!

$ dart --observe DeltaBlue.dart

1. Navigate to a script view.


2. Toggle profile display.


Understanding the data:
- Profiler is sample driven so the performance data is an average.
- The column on the left is total time (including time spent waiting for callees).
- The column on the right is executing time (does not include time spent waiting for callees).
- Percentages are global to the whole program and not local to the function.

Known Issues:
- Not all generated code knows its source position, I will be improving this.
- Some samples cannot be attributed directly to a line of code (register spills, etc). These are accounted for internally but are not displayed in the UI yet.

New issues:
- Please file bugs.

Thanks,
John

John McCutchan

unread,
Mar 15, 2016, 10:58:00 AM3/15/16
to Dart Misc
I forgot to mention this will only be available in the next -dev release!

John

Günter Zöchbauer

unread,
Mar 15, 2016, 1:05:19 PM3/15/16
to Dart Misc
Great! This will increase test coverage a lot. Much more fun with proper feedback :)

Jim Trainor

unread,
Mar 16, 2016, 4:48:51 PM3/16/16
to mi...@dartlang.org
This is awesome. Thanks.

Presumably this will profiling information will be available from observatory?

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Reply all
Reply to author
Forward
0 new messages