view prof.m @ 443:12db86a8ec7b

Fix bug in spyh() when the matix has no non-zero elements.
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 19 Mar 2017 13:39:49 +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