view prof.m @ 1208:7f427275bc9c feature/poroelastic

Merge heads
author Martin Almquist <malmquist@stanford.edu>
date Fri, 20 Sep 2019 15:00:19 -0700
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