view prof.m @ 399:c92d2f8319c2 feature/SBPinTimeClarity

Add wrapper for time stepping second order problems.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 02 Feb 2017 09:58:18 +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