Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bpftrace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bpftrace
Commits
c203e541
Commit
c203e541
authored
7 years ago
by
Alastair Robertson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print histograms for quantize-maps
parent
f9fc748f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/bpftrace.cpp
src/bpftrace.cpp
+7
-1
No files found.
src/bpftrace.cpp
View file @
c203e541
...
...
@@ -223,9 +223,15 @@ int BPFtrace::print_quantize(std::vector<uint64_t> values)
if
(
suffix2
)
header
<<
suffix2
;
header
<<
")"
;
int
max_width
=
52
;
int
bar_width
=
values
.
at
(
i
)
/
(
float
)
max_value
*
max_width
;
std
::
string
bar
(
bar_width
,
'@'
);
std
::
cout
<<
std
::
setw
(
16
)
<<
std
::
left
<<
header
.
str
()
<<
std
::
setw
(
8
)
<<
std
::
right
<<
values
.
at
(
i
)
<<
" |"
<<
std
::
endl
;
<<
" |"
<<
std
::
setw
(
max_width
)
<<
std
::
left
<<
bar
<<
"|"
<<
std
::
endl
;
}
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment