Skip to content

Commit

Permalink
fix pylint issues wrt view_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
trentmc committed Jan 28, 2025
1 parent 15991a2 commit f4bbe44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ ignore=
LICENSE,
Dockerfile,
entrypoint.sh,
pdr_backend.egg-info
pdr_backend.egg-info,
profile.stats

# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
Expand Down
4 changes: 2 additions & 2 deletions view_stats
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python
import pstats
from pstats import SortKey

# settings
n_lines_show = 20 # how many most-significant lines to show

# actual work
import pstats
from pstats import SortKey
p = pstats.Stats('profile.stats')

# SortKey.CUMULATIVE: sort cumulative time in a function
Expand Down

0 comments on commit f4bbe44

Please sign in to comment.