source: issm/oecreview/Archive/11946-11960/ISSM-11957-11958.diff@ 11991

Last change on this file since 11991 was 11991, checked in by Eric.Larour, 13 years ago

oecreview from 11518 to present

File size: 961 bytes
RevLine 
[11991]1Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/classes/debug.m
2===================================================================
3--- /proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/classes/debug.m (revision 11957)
4+++ /proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/classes/debug.m (revision 11958)
5@@ -5,8 +5,9 @@
6
7 classdef debug
8 properties (SetAccess=public)
9- valgrind=false;
10- gprof = false;
11+ valgrind = false;
12+ gprof = false;
13+ petsc_profiling = false;
14 end
15 methods
16 function obj = debug(varargin) % {{{
17@@ -25,7 +26,11 @@
18
19 fielddisplay(obj,'valgrind','use Valgrind to debug (0 or 1)');
20 fielddisplay(obj,'gprof','use gnu-profiler to find out where the time is spent');
21+ fielddisplay(obj,'petsc_profiling','enables PETSc profiling (memory, flops, time)');
22
23 end % }}}
24+ function marshall(obj,fid) % {{{
25+ WriteData(fid,'object',obj,'fieldname','petsc_profiling','format','Boolean');
26+ end % }}}
27 end
28 end
Note: See TracBrowser for help on using the repository browser.