view prof.m @ 772:687756646aa9 feature/grids

Fix bug in +multiblock/Def
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 18 Jul 2018 11:26:10 -0700
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