aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/trace.c
diff options
context:
space:
mode:
authorDavid Jones2007-07-20 11:21:05 +0100
committerDavid Jones2007-07-20 11:21:05 +0100
commitf142d75661c49e22e28a6a06138dfaf917b3683c (patch)
tree4216d1c7363489d5eb3b67057dcc2a0a89ae81b7 /mps/code/trace.c
parent7739f79926304c17eb6e06a35063ea2a8a06acff (diff)
downloademacs-f142d75661c49e22e28a6a06138dfaf917b3683c.tar.gz
emacs-f142d75661c49e22e28a6a06138dfaf917b3683c.zip
Mps: tracestart diag, added poolname and gendesc index.
Copied from Perforce Change: 162957 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/trace.c')
-rw-r--r--mps/code/trace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mps/code/trace.c b/mps/code/trace.c
index aaa730b325f..14f8cc72c7c 100644
--- a/mps/code/trace.c
+++ b/mps/code/trace.c
@@ -1862,7 +1862,7 @@ void TraceStart(Trace trace, double mortality, double finishingTime)
1862 /* Iterate over all chains, all GenDescs within a chain, and all */ 1862 /* Iterate over all chains, all GenDescs within a chain, and all */
1863 /* PoolGens within a GenDesc. */ 1863 /* PoolGens within a GenDesc. */
1864 Ring node, nextNode; 1864 Ring node, nextNode;
1865 int i; 1865 Index i;
1866 1866
1867 RING_FOR(node, &arena->chainRing, nextNode) { 1867 RING_FOR(node, &arena->chainRing, nextNode) {
1868 Chain chain = RING_ELT(Chain, chainRing, node); 1868 Chain chain = RING_ELT(Chain, chainRing, node);
@@ -1874,13 +1874,13 @@ void TraceStart(Trace trace, double mortality, double finishingTime)
1874 Ring n, nn; 1874 Ring n, nn;
1875 GenDesc desc = &chain->gens[i]; 1875 GenDesc desc = &chain->gens[i];
1876 DIAG_WRITEF(( DIAG_STREAM, 1876 DIAG_WRITEF(( DIAG_STREAM,
1877 "MPS: GenDesc $P capacity: $U KiB, mortality $D\n", 1877 "MPS: GenDesc [$U] $P capacity: $U KiB, mortality $D\n",
1878 (void *)desc, desc->capacity, desc->mortality, 1878 i, (void *)desc, desc->capacity, desc->mortality,
1879 NULL )); 1879 NULL ));
1880 RING_FOR(n, &desc->locusRing, nn) { 1880 RING_FOR(n, &desc->locusRing, nn) {
1881 PoolGen gen = RING_ELT(PoolGen, genRing, n); 1881 PoolGen gen = RING_ELT(PoolGen, genRing, n);
1882 DIAG_WRITEF(( DIAG_STREAM, 1882 DIAG_WRITEF(( DIAG_STREAM,
1883 "MPS: PoolGen $U", gen->nr, 1883 "MPS: PoolGen $U ($S)", gen->nr, gen->pool->class->name,
1884 " totalSize $U", gen->totalSize, 1884 " totalSize $U", gen->totalSize,
1885 " newSize $U\n", gen->newSizeAtCreate, 1885 " newSize $U\n", gen->newSizeAtCreate,
1886 NULL )); 1886 NULL ));