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

Side by Side Diff: README.md

Issue 963893002: Make padding consistent across all stack traces for Chain.toString(). (Closed) Base URL: git@github.com:dart-lang/stack_trace@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/chain.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This library provides the ability to parse, inspect, and manipulate stack traces 1 This library provides the ability to parse, inspect, and manipulate stack traces
2 produced by the underlying Dart implementation. It also provides functions to 2 produced by the underlying Dart implementation. It also provides functions to
3 produce string representations of stack traces in a more readable format than 3 produce string representations of stack traces in a more readable format than
4 the native [StackTrace] implementation. 4 the native [StackTrace] implementation.
5 5
6 `Trace`s can be parsed from native [StackTrace]s using `Trace.from`, or captured 6 `Trace`s can be parsed from native [StackTrace]s using `Trace.from`, or captured
7 using `Trace.current`. Native [StackTrace]s can also be directly converted to 7 using `Trace.current`. Native [StackTrace]s can also be directly converted to
8 human-readable strings using `Trace.format`. 8 human-readable strings using `Trace.format`.
9 9
10 [StackTrace]: http://api.dartlang.org/docs/releases/latest/dart_core/StackTrace. html 10 [StackTrace]: http://api.dartlang.org/docs/releases/latest/dart_core/StackTrace. html
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 package:stack_trace/src/stack_zone_specification.dart 119:52 registerCallba ck.<fn> 162 package:stack_trace/src/stack_zone_specification.dart 119:52 registerCallba ck.<fn>
163 dart:async/zone.dart 710 _rootRun 163 dart:async/zone.dart 710 _rootRun
164 dart:async/zone.dart 440 _ZoneDelegate. run 164 dart:async/zone.dart 440 _ZoneDelegate. run
165 dart:async/zone.dart 650 _CustomizedZon e.run 165 dart:async/zone.dart 650 _CustomizedZon e.run
166 dart:async/zone.dart 561 _BaseZone.runG uarded 166 dart:async/zone.dart 561 _BaseZone.runG uarded
167 dart:async/zone.dart 586 _BaseZone.bind Callback.<fn> 167 dart:async/zone.dart 586 _BaseZone.bind Callback.<fn>
168 dart:async-patch/timer_patch.dart 11 _createTimer.< fn> 168 dart:async-patch/timer_patch.dart 11 _createTimer.< fn>
169 dart:io/timer_impl.dart 292 _handleTimeout 169 dart:io/timer_impl.dart 292 _handleTimeout
170 dart:isolate-patch/isolate_patch.dart 115 _RawReceivePor tImpl._handleMessage 170 dart:isolate-patch/isolate_patch.dart 115 _RawReceivePor tImpl._handleMessage
171 ===== asynchronous gap =========================== 171 ===== asynchronous gap ===========================
172 dart:async/zone.dart 476 _ZoneDelegate.registerUnaryCallba ck 172 dart:async/zone.dart 476 _ZoneDelegate. registerUnaryCallback
173 dart:async/zone.dart 666 _CustomizedZone.registerUnaryCall back 173 dart:async/zone.dart 666 _CustomizedZon e.registerUnaryCallback
174 dart:async/future_impl.dart 164 _Future._Future._then 174 dart:async/future_impl.dart 164 _Future._Futur e._then
175 dart:async/future_impl.dart 187 _Future.then 175 dart:async/future_impl.dart 187 _Future.then
176 test.dart 13:12 scheduleAsync 176 test.dart 13:12 scheduleAsync
177 test.dart 7:18 main.<fn> 177 test.dart 7:18 main.<fn>
178 dart:async/zone.dart 710 _rootRun 178 dart:async/zone.dart 710 _rootRun
179 dart:async/zone.dart 440 _ZoneDelegate.run 179 dart:async/zone.dart 440 _ZoneDelegate. run
180 dart:async/zone.dart 650 _CustomizedZone.run 180 dart:async/zone.dart 650 _CustomizedZon e.run
181 dart:async/zone.dart 944 runZoned 181 dart:async/zone.dart 944 runZoned
182 package:stack_trace/src/chain.dart 93:20 Chain.capture 182 package:stack_trace/src/chain.dart 93:20 Chain.capture
183 test.dart 6:16 main 183 test.dart 6:16 main
184 dart:isolate-patch/isolate_patch.dart 216 _startIsolate.isolateStartHandler 184 dart:isolate-patch/isolate_patch.dart 216 _startIsolate. isolateStartHandler
185 dart:isolate-patch/isolate_patch.dart 115 _RawReceivePortImpl._handleMessag e 185 dart:isolate-patch/isolate_patch.dart 115 _RawReceivePor tImpl._handleMessage
186 186
187 That's a lot of text! If you look closely, though, you can see that `main` is 187 That's a lot of text! If you look closely, though, you can see that `main` is
188 listed in the first trace in the chain. 188 listed in the first trace in the chain.
189 189
190 Thankfully, you can call `Chain.terse` just like `Trace.terse` to get rid of all 190 Thankfully, you can call `Chain.terse` just like `Trace.terse` to get rid of all
191 the frames you don't care about. The terse version of the stack chain above is 191 the frames you don't care about. The terse version of the stack chain above is
192 this: 192 this:
193 193
194 test.dart 17:3 runAsync 194 test.dart 17:3 runAsync
195 test.dart 13:28 scheduleAsync.<fn> 195 test.dart 13:28 scheduleAsync.<fn>
196 ===== asynchronous gap =========================== 196 ===== asynchronous gap ===========================
197 dart:async _Future.then 197 dart:async _Future.then
198 test.dart 13:12 scheduleAsync 198 test.dart 13:12 scheduleAsync
199 test.dart 7:18 main.<fn> 199 test.dart 7:18 main.<fn>
200 package:stack_trace Chain.capture 200 package:stack_trace Chain.capture
201 test.dart 6:16 main 201 test.dart 6:16 main
202 202
203 That's a lot easier to understand! 203 That's a lot easier to understand!
204 204
205 [Zone]: https://api.dartlang.org/apidocs/channels/stable/#dart-async.Zone 205 [Zone]: https://api.dartlang.org/apidocs/channels/stable/#dart-async.Zone
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/chain.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698