5 #include "ace/os_include/os_stddef.h"
6 #include "ace/os_include/os_limits.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
17 static Options
*instance ();
20 void parse_args (int argc
, ACE_TCHAR
*argv
[]);
21 // Parse the arguments.
23 // = Accessor methods.
24 const char *program_name ();
25 const char *slave_name ();
28 size_t iteration_count ();
31 size_t max_msg_size ();
32 size_t spawn_count ();
41 static Options
*instance_
;
44 void print_usage_and_die ();
45 // Explain usage and exit.
47 char program_name_
[MAXPATHLEN
];
48 // Name of the program.
50 char slave_name_
[MAXPATHLEN
];
51 // Name of slave process.
54 // Flag to indicate if we are debugging.
57 // Flag to indicate if we should exec after forking.
59 size_t iteration_count_
;
60 // Number of iterations to call malloc_recurse().
63 // Should we use sbrk(2)?
66 // Should we use Shared Memory?
69 // Maximum number of bytes to malloc.
75 // Spawn threads vs. processes.
78 // Use mmap() as the backing store.
81 // We're a child process.