@@ -98,7 +98,7 @@ void printUse( const char * exe ) {
9898 std::cout << " p21read - read a STEP Part 21 exchange file using SCL, and write the data to another file." << std::endl;
9999 std::cout << " Syntax: " << exe << " [-i] [-s] infile [outfile]" << std::endl;
100100 std::cout << " Use '-i' to ignore a schema name mismatch." << std::endl;
101- std::cout << " Use '-m ' to turn off memory info ." << std::endl;
101+ std::cout << " Use '-t ' to turn off statistics tracking ." << std::endl;
102102 std::cout << " Use '-s' for strict interpretation (attributes that are \" missing and required\" will cause errors)." << std::endl;
103103 std::cout << " Use '-v' to print the version info below and exit." << std::endl;
104104 std::cout << " Use '--' as the last argument if a file name starts with a dash." << std::endl;
@@ -109,20 +109,19 @@ void printUse( const char * exe ) {
109109int main ( int argc, char * argv[] ) {
110110 bool ignoreErr = false ;
111111 bool strict = false ;
112- bool memInfo = true ;
112+ bool trackStats = true ;
113113 char c;
114- double physMem, virtMem, preReadPhysMem, preReadVirtMem; // for memory monitoring
115114
116115 if ( argc > 4 || argc < 2 ) {
117116 printUse ( argv[0 ] );
118117 }
119- while ( ( c = sc_getopt ( argc, argv, " imsv " ) ) != -1 ) {
118+ while ( ( c = sc_getopt ( argc, argv, " itsv " ) ) != -1 ) {
120119 switch ( c ) {
121120 case ' i' :
122121 ignoreErr = true ;
123122 break ;
124- case ' m ' :
125- memInfo = false ;
123+ case ' t ' :
124+ trackStats = false ;
126125 break ;
127126 case ' s' :
128127 strict = true ;
@@ -162,8 +161,10 @@ int main( int argc, char * argv[] ) {
162161 sfile.Error ().PrintContents ( cout );
163162 }
164163
165- stats.stop ();
166- stats.out ( );
164+ if ( trackStats ) {
165+ stats.stop ();
166+ stats.out ( );
167+ }
167168
168169 if ( sfile.Error ().severity () <= SEVERITY_INCOMPLETE ) {
169170 exit (1 );
0 commit comments