view prof.m @ 1005:efa51f393fd0

Remove misplaced error functions from +scheme
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 16 Jan 2019 16:50:21 +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