t_debug_allocs.cpp File Reference

#include <basis/chaos.h>
#include <basis/guards.h>
#include <basis/istring.h>
#include <data_struct/amorph.cpp>
#include <mechanisms/ithread.h>
#include <mechanisms/time_stamp.h>
#include <loggers/file_logger.h>
#include <opsystem/path_configuration.h>
#include <data_struct/static_memory_gremlin.h>

Include dependency graph for t_debug_allocs.cpp:

Go to the source code of this file.

Defines

#define LOG(to_print)   log.log(timestamp(true) + istring(to_print))
#define static_class_name()   "t_debug_alloc"

Functions

int main (int formal(argc), char *formal(argv)[])

Variables

 HOOPLE_STARTUP_CODE
const int DEFAULT_FISH_LOW = 50
const int DEFAULT_FISH_HIGH = 200
const int DEFAULT_RUN_TIME = 5 * MINUTE_ms
const int SLEEP_LOW = 28
const int SLEEP_HIGH = 114
const istring LOGFILE_NAME
const int MAX_ALLOCS_PER_THREAD = 30
const int MAX_ALLOC = 20000
chaos rando


Define Documentation

#define LOG ( to_print   )     log.log(timestamp(true) + istring(to_print))

Definition at line 56 of file t_debug_allocs.cpp.

 
#define static_class_name (  )     "t_debug_alloc"

Definition at line 137 of file t_debug_allocs.cpp.


Function Documentation

int main ( int   formal(argc),
char *  formal(argv)[] 
)

Definition at line 143 of file t_debug_allocs.cpp.

References guards::alert_message(), amorph< contents >::append(), deadly_error, DEFAULT_FISH_HIGH, DEFAULT_FISH_LOW, DEFAULT_RUN_TIME, amorph< contents >::elements(), FUNCDEF, chaos::inclusive(), LOG, log(), LOGFILE_NAME, NIL, rando, amorph< contents >::reset(), portable::sleep_ms(), istring::SPRINTF, and static_class_name.


Variable Documentation

const int DEFAULT_FISH_HIGH = 200

Definition at line 34 of file t_debug_allocs.cpp.

Referenced by main().

const int DEFAULT_FISH_LOW = 50

Definition at line 33 of file t_debug_allocs.cpp.

Referenced by main().

const int DEFAULT_RUN_TIME = 5 * MINUTE_ms

Definition at line 37 of file t_debug_allocs.cpp.

HOOPLE_STARTUP_CODE

Definition at line 31 of file t_debug_allocs.cpp.

const istring LOGFILE_NAME

Initial value:

 path_configuration::make_logfile_name
    ("t_debug_allocs.log")

Definition at line 46 of file t_debug_allocs.cpp.

Referenced by main().

const int MAX_ALLOC = 20000

Definition at line 53 of file t_debug_allocs.cpp.

const int MAX_ALLOCS_PER_THREAD = 30

Definition at line 50 of file t_debug_allocs.cpp.

chaos rando

Definition at line 59 of file t_debug_allocs.cpp.

const int SLEEP_HIGH = 114

Definition at line 43 of file t_debug_allocs.cpp.

const int SLEEP_LOW = 28

Definition at line 42 of file t_debug_allocs.cpp.


Generated on Fri Sep 5 04:30:09 2008 for HOOPLE Libraries by  doxygen 1.5.1