view prof.m @ 451:4e266dfe9edc feature/grids

Add warning for possible bug
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 10 May 2017 13:13:06 +0200
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