view prof.m @ 208:40dda96c8c9c feature/grids

blockmatrix: Added function to convert regular matrix to blockmatrix.
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 15 Jun 2016 17:25:40 +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