Update of /cvsroot/javaprofiler/library/src/setup
In directory usw-pr-cvs1:/tmp/cvs-serv19670
Modified Files:
setup.h setup.cpp
Log Message:
no message
Index: setup.h
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/setup/setup.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** setup.h 10 Feb 2002 18:36:14 -0000 1.11
--- setup.h 22 Mar 2002 21:22:42 -0000 1.12
***************
*** 93,96 ****
--- 93,99 ----
/// whether resolution to threads is enabled
int threadsEnabled;
+
+ /// whether resolution to line numbers is enabled
+ int linenoEnabled;
};
***************
*** 115,120 ****
--- 118,129 ----
int threadsEnabled;
+ /// whether resolution to line numbers is enabled
+ int linenoEnabled;
+
/// whether calltree is enabled
int callTreeEnabled;
+
+ /// whether resolution to line numbers for calltree is enabled
+ int callTreeLinenoEnabled;
};
***************
*** 135,138 ****
--- 144,150 ----
/// whether resolution to threads is enabled
int threadsEnabled;
+
+ /// whether resolution to line numbers is enabled
+ int linenoEnabled;
};
Index: setup.cpp
===================================================================
RCS file: /cvsroot/javaprofiler/library/src/setup/setup.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** setup.cpp 10 Feb 2002 18:36:14 -0000 1.9
--- setup.cpp 22 Mar 2002 21:22:42 -0000 1.10
***************
*** 42,45 ****
--- 42,46 ----
alloc.traceDepth = 2;
alloc.threadsEnabled = 1;
+ alloc.linenoEnabled = 1;
cpu.turnedOn = 1;
***************
*** 48,52 ****
--- 49,55 ----
cpu.traceDepth = 2;
cpu.threadsEnabled = 1;
+ cpu.linenoEnabled = 1;
cpu.callTreeEnabled = 1;
+ cpu.callTreeLinenoEnabled = 0;
mon.turnedOn = 1;
***************
*** 54,57 ****
--- 57,61 ----
mon.traceDepth = 2;
mon.threadsEnabled = 1;
+ mon.linenoEnabled = 1;
if( options) processOptions( options);
***************
*** 149,152 ****
--- 153,164 ----
}
+ if( !strcmp( name, "alloc_line")) {
+
+ if( !strcmp( value, "on")) alloc.linenoEnabled = 1;
+ else if( !strcmp( value, "off")) alloc.linenoEnabled = 0;
+
+ return;
+ }
+
if( !strcmp( name, "cpu")) {
***************
*** 194,197 ****
--- 206,217 ----
}
+ if( !strcmp( name, "cpu_line")) {
+
+ if( !strcmp( value, "on")) cpu.linenoEnabled = 1;
+ else if( !strcmp( value, "off")) cpu.linenoEnabled = 0;
+
+ return;
+ }
+
if( !strcmp( name, "cpu_calltree")) {
***************
*** 202,205 ****
--- 222,233 ----
}
+ if( !strcmp( name, "cpu_calltree_line")) {
+
+ if( !strcmp( value, "on")) cpu.callTreeLinenoEnabled = 1;
+ else if( !strcmp( value, "off")) cpu.callTreeLinenoEnabled = 0;
+
+ return;
+ }
+
if( !strcmp( name, "mon")) {
***************
*** 235,238 ****
--- 263,274 ----
if( !strcmp( value, "on")) mon.threadsEnabled = 1;
else if( !strcmp( value, "off")) mon.threadsEnabled = 0;
+
+ return;
+ }
+
+ if( !strcmp( name, "mon_line")) {
+
+ if( !strcmp( value, "on")) mon.linenoEnabled = 1;
+ else if( !strcmp( value, "off")) mon.linenoEnabled = 0;
return;
|