source:
issm/oecreview/Archive/11946-11960/ISSM-11957-11958.diff@
11991
Last change on this file since 11991 was 11991, checked in by , 13 years ago | |
---|---|
File size: 961 bytes |
-
proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/classes/debug.m
5 5 6 6 classdef debug 7 7 properties (SetAccess=public) 8 valgrind=false; 9 gprof = false; 8 valgrind = false; 9 gprof = false; 10 petsc_profiling = false; 10 11 end 11 12 methods 12 13 function obj = debug(varargin) % {{{ … … 25 26 26 27 fielddisplay(obj,'valgrind','use Valgrind to debug (0 or 1)'); 27 28 fielddisplay(obj,'gprof','use gnu-profiler to find out where the time is spent'); 29 fielddisplay(obj,'petsc_profiling','enables PETSc profiling (memory, flops, time)'); 28 30 29 31 end % }}} 32 function marshall(obj,fid) % {{{ 33 WriteData(fid,'object',obj,'fieldname','petsc_profiling','format','Boolean'); 34 end % }}} 30 35 end 31 36 end
Note:
See TracBrowser
for help on using the repository browser.