~kiithsacmp/miniini/trunk

« back to all changes in this revision

Viewing changes to miniini/src/globals.cpp

  • Committer: Ferdinand Majerech
  • Date: 2010-07-12 15:06:46 UTC
  • Revision ID: kiithsacmp@gmail.com-20100712150646-gp61bwuf2mdftr5m
Added detailed memory benchmarking measurements used with flag MINIINI_BENCH_EXTRA. Increased default allocator block count to from 16 to 32. Version-compare.py now uses make to compile compared versions, and has a new option, --no-stl, to disable STL benchmarks. Logging buffer size was decreased from 1024 to 768 bytes. INISection and allocator block classes are now smaller to save memory - using 32bit ints instead of fastest ints available on platform. This does not change peak memory usage much, but decreases INIFile data structure overhead measurably. Names of time extra benchmarking measurements used with MINIINI_BENCH_EXTRA were changed to improve consistency. Small bug fixed in the article about MiniINI data storage and in testutil-compare.py. Added a help() function to commit.py to print usage information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
{
11
11
 
12
12
#ifdef MINIINI_BENCH_EXTRA
 
13
///Used for detailed memory usage measurement.
 
14
ui memory_tag_ptrs = 0;
 
15
ui memory_sections = 0;
 
16
ui memory_section_ptrs = 0;
 
17
ui memory_inifile = 0;
 
18
ui memory_block_ptrs = 0;
 
19
ui memory_allocator = 0;
 
20
ui memory_blocks = 0;
 
21
 
 
22
ui memory_block_data = 0;
 
23
ui memory_block_data_used = 0;
13
24
#ifdef linux
14
25
///Used for high resolution file read time measurement.
15
 
miniini_private::ld bench_filetime = 0.0;
16
 
miniini_private::ld bench_alloctime = 0.0;
17
 
miniini_private::ld bench_loadtime = 0.0;
 
26
ld bench_filetime = 0.0;
 
27
ld bench_alloctime = 0.0;
 
28
ld bench_loadtime = 0.0;
18
29
#endif
19
30
#endif
20
31