Re: MemoryContextStats tweak: show tree structure - Mailing list pgsql-patches

From Tom Lane
Subject Re: MemoryContextStats tweak: show tree structure
Date
Msg-id 6163.1186448163@sss.pgh.pa.us
Whole thread Raw
In response to MemoryContextStats tweak: show tree structure  (Neil Conway <neilc@samurai.com>)
Responses Re: MemoryContextStats tweak: show tree structure  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> Previously, MemoryContextStats() simply emitted a line of output for
> each MemoryContext. This is fine, but it makes it difficult to see the
> shape of the MemoryContext hierarchy. Attached is a trivial patch to
> indent each context by "4 * level" spaces, where "level" is the depth of
> the node within the subtree printed by MemoryContextStats().

Seems reasonable except I'd vote for less indentation --- the lines are
too long already.  How do you feel about 1 or 2 spaces per level?

            regards, tom lane

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: MemoryContextStats tweak: show tree structure
Next
From: Neil Conway
Date:
Subject: Re: MemoryContextStats tweak: show tree structure