Skip to content

tkf/EventTracker.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventTracker

Dev GitHub Actions

EventTracker.jl is like TimerOutputs.jl but designed to track all individual timings (events) in a thread-friendly manner. It supports exporting the measurements as accessible data formats from standard data analysis packages such as DataFrames.jl and Tables.jl. It is useful for implementing custom performance analysis tool.

Example

julia> using EventTracker

julia> function counter(n)
           if n > 0
               @recordinterval counter(n-1)
            else
               @recordpoint
               println("done!")
            end
       end;

julia> counter(11)
done!
julia> df = EventTracker.summary_dataframe()
2×9 DataFrame
 Row │ ncalls  time              tag      line    file     _module  firstcall          eventkind       locationid
     │ Int64   Float64?          Union?  Int64?  Union?  Module?  UInt64             EventKin       UInt64
─────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   111        6.01317e-5                3  REPL[2]  Main     17718374492314440  EVENT_INTERVAL  139675751155888
   21  missing                         5  REPL[2]  Main     17718374492316350  EVENT_POINT     139675753020864

See also:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages