summaryrefslogtreecommitdiff
path: root/viengoos/activity.c
diff options
context:
space:
mode:
authorneal <neal>2008-06-29 11:15:56 +0000
committerneal <neal>2008-06-29 11:15:56 +0000
commite35cc9ed183b0b2ef3b138427af574e5f7584561 (patch)
treeecd77597686f4cc1f6a834690d045e7042e730ac /viengoos/activity.c
parent980c6e992dff9e94bcf69ed430847860740c71a1 (diff)
2008-06-29 Neal H. Walfield <neal@gnu.org>
* activity.c (activity_destroy): After printing the profile data, print the enabled debugging options. (do_activity_dump): Also print how many free allocations the activity has, its karma and the number of excluded frames.
Diffstat (limited to 'viengoos/activity.c')
-rw-r--r--viengoos/activity.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/viengoos/activity.c b/viengoos/activity.c
index b9784d1..1b54f6f 100644
--- a/viengoos/activity.c
+++ b/viengoos/activity.c
@@ -81,6 +81,18 @@ activity_destroy (struct activity *activity, struct activity *victim)
{
assert (victim == root_activity);
profile_stats_dump ();
+ debug (0, ""
+#ifdef NCHECK
+ "NCHECK "
+#endif
+#ifdef NDEBUG
+ "NDEBUG "
+#endif
+#ifdef DEBUG_ELIDE
+ "DEBUG_ELIDE=%d", DEBUG_ELIDE + 0
+#endif
+ );
+
panic ("Request to destroy root activity");
}
@@ -397,11 +409,15 @@ do_activity_dump (struct activity *activity, int indent)
int dirty = eviction_list_count (&activity->eviction_dirty);
printf ("%s " OBJECT_NAME_FMT ": %d frames (active: %d, inactive: %d, "
- "pending eviction: %d/%d); total: %d; s:%d/%d; c:%d/%d\n",
+ "pending eviction: %d/%d); total: %d; "
+ "%d free allocs, %d karma, %d excluded, s:%d/%d; c:%d/%d\n",
indent_string,
OBJECT_NAME_PRINTF ((struct object *) activity),
activity->frames_local, active, inactive, clean, dirty,
activity->frames_total,
+ activity->free_allocations,
+ activity->free_bad_karma,
+ activity->frames_excluded,
activity->policy.sibling_rel.priority,
activity->policy.sibling_rel.weight,
activity->policy.child_rel.priority,