Skip to content

Commit

Permalink
[yugabyte#7848] Fix for yb-prof for python3
Browse files Browse the repository at this point in the history
Summary: Making yb-prof py3 compatible.

Test Plan: `./bin/yb-prof.py --profile_url=localhost:9000/pprof --output_file_prefix=/tmp/bogdan_test/512_tablets --seconds=30`

Reviewers: amitanand, rahuldesirazu, kannan

Reviewed By: kannan

Subscribers: ybase

Differential Revision: https://phabricator.dev.yugabyte.com/D11081
  • Loading branch information
bmatican committed Mar 29, 2021
1 parent acc0b7e commit aa7a2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/yb-prof.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def symbolize(self, symbols):
"-d",
arg,
self.pprof_url_ + "/symbol"])
lines = result.split("\n")
lines = result.decode().split("\n")
for line in lines:
# Use whitespace as the delimiter, and produce no more than two parts
# (i.e. max of 1 split). The symbolized function name may itself contain
Expand Down

0 comments on commit aa7a2b2

Please sign in to comment.