view prof.m @ 332:875386d0b2ff feature/beams

Fixed a bug in draw and added a helper function to parametrization.Ti.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 03 Oct 2016 11:44:05 +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