82 group_stats = stats.group(args.depth)
84 cutoff, display = args.cutoff * 1024, args.display
86 as_list = [(v, k, )
for (k, v)
in group_stats.items()]
87 as_list.sort(reverse=
True, key=
lambda (v, k):
abs(v))
89 if cutoff
is not None:
90 as_list =
filter(
lambda (v, k):
abs(v) > cutoff, as_list)
92 if display
is not None:
93 as_list = as_list[:display]
97 print (
" DQM level %d folder breakdown " % args.depth).center(80,
"*")
99 print (
"* Size cutoff: %s" %
kibisize(cutoff)).ljust(79) +
"*" 101 print (
"* Showing top %d entries." % display).ljust(79) +
"*" Abs< T >::type abs(const T &t)
def displayDirectoryStatistics(stats, args)