moodymudskipper / flow

View and Browse Code Using Flow Diagrams
https://moodymudskipper.github.io/flow/
Other
395 stars 26 forks source link

profiling #50

Open moodymudskipper opened 3 years ago

moodymudskipper commented 3 years ago

That will need another layer of metaprogramming, but what about profiling ?

As a comment to a node, we give the execution time.

For statements in loop, we give the average and sd, and we can propose to the user to customize these metrics so they can include min max etc.

The function would return an flow_profile object which could be analysed or plotted. For instance we could call a function on this object and a node number and get have a line chart of execution time vs iteration, possibly with x axis labels for every nested loop.