view prof.m @ 403:0ae72c67b03f feature/SBPinTimeClarity

Close branch feature/SBPinTimeClarity
author Martin Almquist <martin.almquist@it.uu.se>
date Thu, 02 Feb 2017 14:46:36 +0000
parents cb65c81d6c87
children
line wrap: on
line source

function prof(f)
    profile on
    try
        f();
        profile viewer
    catch e
        fprintf(2, '\n%s', getReport(e));
        profile clear
    end
end