timing_logger 2.0.0 copy "timing_logger: ^2.0.0" to clipboard
timing_logger: ^2.0.0 copied to clipboard

A utility class to help log timings splits throughout a method call.

timing_logger #

A utility class to help log timings splits throughout a method call.

Getting Started #

Typical usage is:

     TimingLogger timings = new TimingLogger(TAG, "methodA");
     // ... do some work A ...
     timings.addSplit("work A");
     // ... do some work B ...
     timings.addSplit("work B");
     // ... do some work C ...
     timings.addSplit("work C");
     timings.dumpToLog();

The dumpToLog call would add the following to the log:

     D/TAG     ( 3459): methodA: begin
     D/TAG     ( 3459): methodA:      9 ms, work A
     D/TAG     ( 3459): methodA:      1 ms, work B
     D/TAG     ( 3459): methodA:      6 ms, work C
     D/TAG     ( 3459): methodA: end, 16 ms
6
likes
160
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A utility class to help log timings splits throughout a method call.

Repository (GitHub)

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on timing_logger