src/Pure/ML-Systems/ml_profiling_polyml-5.6.ML
changeset 61925 ab52f183f020
parent 61924 55b3d21ab5e5
child 61926 17ba31a2303b
equal deleted inserted replaced
61924:55b3d21ab5e5 61925:ab52f183f020
     1 (*  Title:      Pure/ML-Systems/ml_profiling_polyml-5.6.ML
       
     2     Author:     Makarius
       
     3 
       
     4 Profiling for Poly/ML 5.6.
       
     5 *)
       
     6 
       
     7 structure ML_Profiling =
       
     8 struct
       
     9 
       
    10 fun profile_time pr f x =
       
    11   PolyML.Profiling.profileStream pr PolyML.Profiling.ProfileTime f x;
       
    12 
       
    13 fun profile_time_thread pr f x =
       
    14   PolyML.Profiling.profileStream pr PolyML.Profiling.ProfileTimeThisThread f x;
       
    15 
       
    16 fun profile_allocations pr f x =
       
    17   PolyML.Profiling.profileStream pr PolyML.Profiling.ProfileAllocations f x;
       
    18 
       
    19 end;