mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #62317 from ClickHouse/postprocess-correct-i-hope
Fix for postprocess script: print correct count for frame
This commit is contained in:
commit
17111c2f0e
@ -13,9 +13,9 @@ sub process_stacktrace
|
||||
my $group = \$grouped_stacks;
|
||||
for my $frame (reverse @current_stack)
|
||||
{
|
||||
$group = \$$group->{children}{$frame};
|
||||
$$group->{count} ||= 0;
|
||||
++$$group->{count};
|
||||
$group = \$$group->{children}{$frame};
|
||||
}
|
||||
|
||||
@current_stack = ();
|
||||
@ -47,7 +47,7 @@ sub print_group
|
||||
|
||||
for my $key (sort { $group->{children}{$b}{count} <=> $group->{children}{$a}{count} } keys %{$group->{children}})
|
||||
{
|
||||
my $count = $group->{count};
|
||||
my $count = $group->{children}{$key}{count};
|
||||
print(('| ' x $level) . $count . (' ' x (5 - (length $count))) . $key . "\n");
|
||||
print_group($group->{children}{$key}, $level + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user