Commit c1deddd
committed
In the tags command, print percentages relative to profile total.
Before this change percentages were relative to the tag total and this
sometimes causes confusion for users as it makes it look like the tag is
set for all samples when it's not.
Note that the percentage calculation as implemented does not attempt to
be friendly to samples where a given tag has multiple values. Multiple
values per tag per sample are discouraged and we should deprecate them.
Maybe we should make pprof print a warning for such profiles.1 parent fc31438 commit c1deddd
File tree
6 files changed
+34
-23
lines changed- internal
- driver/testdata
- report
6 files changed
+34
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
703 | | - | |
| 702 | + | |
| 703 | + | |
704 | 704 | | |
705 | 705 | | |
706 | | - | |
| 706 | + | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
708 | 712 | | |
| 713 | + | |
| 714 | + | |
709 | 715 | | |
710 | 716 | | |
711 | 717 | | |
712 | 718 | | |
713 | 719 | | |
714 | 720 | | |
715 | 721 | | |
716 | | - | |
| 722 | + | |
| 723 | + | |
717 | 724 | | |
718 | 725 | | |
719 | 726 | | |
| |||
725 | 732 | | |
726 | 733 | | |
727 | 734 | | |
728 | | - | |
| 735 | + | |
| 736 | + | |
729 | 737 | | |
730 | 738 | | |
731 | 739 | | |
| |||
735 | 743 | | |
736 | 744 | | |
737 | 745 | | |
| 746 | + | |
738 | 747 | | |
739 | | - | |
740 | 748 | | |
741 | 749 | | |
742 | 750 | | |
743 | | - | |
744 | 751 | | |
745 | 752 | | |
746 | 753 | | |
747 | | - | |
748 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
749 | 760 | | |
750 | 761 | | |
751 | | - | |
752 | | - | |
| 762 | + | |
| 763 | + | |
753 | 764 | | |
754 | 765 | | |
755 | 766 | | |
| |||
0 commit comments