http://docs.julialang.org/en/latest/manual/profile/#accumulation-and-clearing
If you want to save results from a single session, use `savedprof = copy(Profile.fetch())` and print with `Profile.print(savedprof)`. On Thu, Jul 7, 2016 at 11:07 AM, <[email protected]> wrote: > Thanks. Can I do profiling on B.g() and A.f() simultaneously? For example, > > import A, B > @profile p = B.g() > @profile A.f(p) > > > Then when I do `Profile.print()`, which `Profile` is it? The profile data > for B.g() or A.f(p)? Is there a way to store the data separately into two > different Profile variables? > > > On Thursday, July 7, 2016 at 2:39:30 PM UTC+1, Isaiah wrote: >> >> Yes >> >> On Thu, Jul 7, 2016 at 9:31 AM, <[email protected]> wrote: >> >>> Do you mean that in the test file I do something like this? >>> >>> import A, B >>> p = B.g() >>> @profile A.f(p) >>> >>> >>> >>> >>> On Thursday, July 7, 2016 at 1:22:24 PM UTC+1, Isaiah wrote: >>>> >>>> Profile the calls to B.g and A.f separately. >>>> >>>> On Thursday, July 7, 2016, <[email protected]> wrote: >>>> >>>>> Bump up. >>>>> >>>> >>
