view prof.m @ 385:b361a04894e3 feature/beams

Fix bug in implicit cdiff. Add stepTo method for timesteppers.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 02 Jan 2017 12:21:01 +0100
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