Changeset 1918 for trunk/src/kmk/main.c
- Timestamp:
- Oct 23, 2008, 11:27:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r1915 r1918 83 83 void verify_file_data_base (void); 84 84 85 #ifdef CONFIG_WITH_PRINT_STATS_SWITCH 86 void print_variable_stats (void); 87 void print_file_stats (void); 88 #endif 89 85 90 #if defined HAVE_WAITPID || defined HAVE_WAIT3 86 91 # define HAVE_WAIT_NOHANG … … 172 177 173 178 int pretty_command_printing; 179 #endif 180 181 #ifdef CONFIG_WITH_PRINT_STATS_SWITCH 182 /* Nonzero means to print internal statistics before exiting. */ 183 184 int print_stats_flag; 174 185 #endif 175 186 … … 476 487 "pretty-command-printing" }, 477 488 #endif 489 #ifdef CONFIG_WITH_PRINT_STATS_SWITCH 490 { CHAR_MAX+11, flag, (char *) &print_stats_flag, 1, 1, 1, 0, 0, 491 "print-stats" }, 492 #endif 478 493 #ifdef KMK 479 { CHAR_MAX+1 1, positive_int, (char *) &process_priority, 1, 1, 0,494 { CHAR_MAX+12, positive_int, (char *) &process_priority, 1, 1, 0, 480 495 (char *) &process_priority, (char *) &process_priority, "priority" }, 481 { CHAR_MAX+1 2, positive_int, (char *) &process_affinity, 1, 1, 0,496 { CHAR_MAX+14, positive_int, (char *) &process_affinity, 1, 1, 0, 482 497 (char *) &process_affinity, (char *) &process_affinity, "affinity" }, 483 498 #endif … … 490 505 "no-keep-going" }, 491 506 #if defined (CONFIG_WITH_MAKE_STATS) || defined (CONFIG_WITH_MINIMAL_STATS) 492 { CHAR_MAX+1 4, flag, (char *) &make_expensive_statistics, 1, 1, 1, 0, 0,507 { CHAR_MAX+15, flag, (char *) &make_expensive_statistics, 1, 1, 1, 0, 0, 493 508 "statistics" }, 494 509 #endif … … 3653 3668 printf (_("\n# Finished Make data base on %s\n"), ctime (&when)); 3654 3669 } 3670 #ifdef CONFIG_WITH_PRINT_STATS_SWITCH 3671 3672 static void 3673 print_stats () 3674 { 3675 time_t when; 3676 3677 when = time ((time_t *) 0); 3678 printf (_("\n# Make statistics, printed on %s"), ctime (&when)); 3679 3680 print_variable_stats (); 3681 print_file_stats (); 3682 # ifndef CONFIG_WITH_STRCACHE2 3683 strcache_print_stats ("#"); 3684 # else 3685 strcache2_print_stats_all ("#"); 3686 # endif 3687 # ifdef CONFIG_WITH_ALLOC_CACHES 3688 alloccache_print_all (); 3689 # endif 3690 print_heap_stats (); 3691 3692 when = time ((time_t *) 0); 3693 printf (_("\n# Finished Make statistics on %s\n"), ctime (&when)); 3694 } 3695 #endif 3655 3696 3656 3697 static void … … 3734 3775 if (print_data_base_flag) 3735 3776 print_data_base (); 3777 3778 #ifdef CONFIG_WITH_PRINT_STATS_SWITCH 3779 if (print_stats_flag) 3780 print_stats (); 3781 #endif 3736 3782 3737 3783 #ifdef NDEBUG /* bird: Don't waste time on debug sanity checks. */
Note:
See TracChangeset
for help on using the changeset viewer.