mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 14:42:02 +03:00
Minor debugging cleanups.
This commit is contained in:
parent
806ee33e5f
commit
8d5ac23ab2
@ -6,11 +6,7 @@
|
||||
**/
|
||||
/* U3_MEMORY_DEBUG: add debugging information to heap. Breaks image.
|
||||
*/
|
||||
# define U3_MEMORY_DEBUG
|
||||
|
||||
/* U3_PRINT_WATERMARK: print watermark information for each road
|
||||
*/
|
||||
# define U3_PRINT_WATERMARK
|
||||
# undef U3_MEMORY_DEBUG
|
||||
|
||||
/** Constants.
|
||||
**/
|
||||
|
@ -1751,7 +1751,7 @@ u3a_sweep(void)
|
||||
? u3R->mat_p - u3R->cap_p
|
||||
: u3R->cap_p - u3R->mat_p;
|
||||
|
||||
#ifdef U3_PRINT_WATERMARK
|
||||
#ifdef U3_CPU_DEBUG
|
||||
if ( (0 != u3R->par_p) && (u3R->all.max_w > 1000000) ) {
|
||||
u3a_print_memory("available", (tot_w - pos_w));
|
||||
u3a_print_memory("allocated", pos_w);
|
||||
|
@ -899,9 +899,9 @@ u3m_soft_top(c3_w sec_w, // timer seconds
|
||||
/* Make sure the inner routine did not create garbage.
|
||||
*/
|
||||
if ( u3C.wag_w & u3o_debug_ram ) {
|
||||
#ifdef U3_PRINT_WATERMARK
|
||||
#ifdef U3_CPU_DEBUG
|
||||
if ( u3R->all.max_w > 1000000 ) {
|
||||
fprintf(stderr, "soft_top: max %dMB\r\n", u3R->all.max_w / 256000);
|
||||
u3a_print_memory("execute: top", u3R->all.max_w);
|
||||
}
|
||||
#endif
|
||||
u3m_grab(pro, u3_none);
|
||||
@ -995,9 +995,9 @@ u3m_soft_run(u3_noun gul,
|
||||
u3t_off(coy_o);
|
||||
pro = fun_f(aga, agb);
|
||||
|
||||
#ifdef U3_PRINT_WATERMARK
|
||||
#ifdef U3_CPU_DEBUG
|
||||
if ( u3R->all.max_w > 1000000 ) {
|
||||
u3a_print_memory("execute", u3R->all.max_w);
|
||||
u3a_print_memory("execute: run", u3R->all.max_w);
|
||||
}
|
||||
#endif
|
||||
/* Produce success, on the old road.
|
||||
|
Loading…
Reference in New Issue
Block a user