Directory testprograms/Malloc/

Total Files:
14
Deleted Files:
0
Lines of Code:
951

[root]/testprograms/Malloc

Lines of Code

testprograms/Malloc/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 43 (100.0%) 56 (100.0%) 1.3
jas 42 (97.7%) 50 (89.3%) 1.1
dav 1 (2.3%) 6 (10.7%) 6.0

Most Recent Commits

jas 2008-07-07 20:07 Rev.: 41434

Use the proper c++ standard for include files for the C inlude files, i.e.
<stdio.h> --> <cstdio>
<math.h> --> <cmath>

Tested on g++ 4.2 and 4.3 compilers.

36 lines of code changed in 28 files:

  • testprograms/Malloc: test1.cc (+1 -1), test10.cc (new), test11.cc (new), test12.cc (+4 -4), test13.cc (+4 -4), test14.cc (new), test15.cc (new), test2.cc (+2 -2), test3.cc (+2 -2), test4.cc (new), test5.cc (+2 -2), test6.cc (new), test8.cc (+2 -2), test9.cc (new)
jas 2008-06-24 12:03 Rev.: 41303

Fix compiler build problems with gcc-4.3

14 lines of code changed in 14 files:

  • testprograms/Malloc: test1.cc (+1 -1), test10.cc (+1 -1), test11.cc (+1 -1), test12.cc (+1 -1), test13.cc (+1 -1), test14.cc (+1 -1), test15.cc (+1 -1), test2.cc (+1 -1), test3.cc (+1 -1), test4.cc (+1 -1), test5.cc (+1 -1), test6.cc (+1 -1), test8.cc (+1 -1), test9.cc (+1 -1)
dav 2008-01-02 16:13 Rev.: 39775


This commit adds the SCI_MALLOC_TRACE functionality (found in the
Core/Malloc/Trace.h file (though accessed through
Core/Malloc/Allocator.h). The Malloc tracing will create a file and
record every malloc/free in it. (This will capture the news/deletes
too.) By using scinew, the name of the file and line number of each
new() will be recorded. (Note, until a file name to save information
to is specified, mallocs will be traced via stdout. You can only use
one of malloc trace or sci malloc, but not both at the same time.

M configure.ac
M configure

Use "--enable-sci-malloc-trace" on the configure line to turn on
malloc tracing.

M include/sci_defs/malloc_testdefs.h.in

Contains the #define for malloc trace if enabled via confiure.

A Core/Malloc/Trace.cc
A Core/Malloc/Trace.h

Implements the tracing functionality... Note, you should #include
Allocator.h and not Trace.h.

M Core/Malloc/sub.mk

Compile Trace.cc.

M Core/Malloc/Allocator.h
M Core/Malloc/Allocator.cc

Indent some # stuff. Don't create Allocator stuff in SCI Malloc is
off or SCI Trace is on.

M Core/Util/sci_system.cc

Indent # stuff. Only lock/unlock allocator if using SCI Malloc.

M Core/Geometry/BBox.h

Be specific about #undef of min and max instead of assuming they both
are always exist together. (They probably do, but...)

M Core/GuiInterface/MemStats.cc

Fix to only use parts of code if SCI Malloc is on.

M testprograms/Malloc/test14.cc

Test 14 doesn't do anything currently, so printed out a message to let the user know.

M Packages/Uintah/Dataflow/Modules/Visualization/SubFieldHistogram.cc

Removed "using SCIRun::Allocator" (etc) as it wasn't being used.

M Packages/Uintah/CCA/Components/SimulationController/AMRSimulationController.cc
M Packages/Uintah/CCA/Components/Schedulers/SchedulerCommon.cc
M Packages/Uintah/Core/Parallel/Parallel.cc

Only use Allocator functions if SCI Malloc on.

M Packages/Uintah/CCA/Components/ICE/ICE.cc

Turned off setting of unused variable "Time".

M Packages/Uintah/Core/DataArchive/DataArchive.cc

Don't use Allocator functions if SCI Malloc is off... Fixed some initialization of variables.

M Packages/Uintah/StandAlone/sus.cc

Added sample of turning on malloc trace file.


6 lines of code changed in 1 file:

  • testprograms/Malloc: test14.cc (+6)
Generated by StatSVN 0.4.0