profiler-runit 0.1.3.post1.dev1__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/PKG-INFO +1 -1
- profiler_runit-0.1.4/assets/runit-demo.gif +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/PKG-INFO +1 -1
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/runit/cli.py +13 -1
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/runit/plotting.py +2 -1
- profiler_runit-0.1.3.post1.dev1/assets/runit-demo.gif +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/.github/workflows/ci.yml +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/.github/workflows/release.yml +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/.github/workflows/testpypi.yml +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/.gitignore +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/LICENSE +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/README.md +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/benchmark.py +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/SOURCES.txt +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/dependency_links.txt +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/entry_points.txt +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/requires.txt +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/top_level.txt +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/pyproject.toml +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/requirements.txt +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/runit/__init__.py +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/runit/logging_config.py +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/runit/monitor.py +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/runit/report.py +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/runit/utils.py +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/setup.cfg +0 -0
- {profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/test.py +0 -0
|
Binary file
|
|
@@ -28,7 +28,7 @@ def run_cli():
|
|
|
28
28
|
stats = monitor_process(args.command)
|
|
29
29
|
report = format_report(stats)
|
|
30
30
|
if args.plot:
|
|
31
|
-
plot_charts(stats)
|
|
31
|
+
plot_charts(stats, args.plot_width, args.plot_height)
|
|
32
32
|
print(report)
|
|
33
33
|
if args.out_file:
|
|
34
34
|
sys.stdout = orig_stdout
|
|
@@ -69,6 +69,18 @@ def create_parser():
|
|
|
69
69
|
action='store_true',
|
|
70
70
|
help='Show resource usage charts (requires plotext).'
|
|
71
71
|
)
|
|
72
|
+
parser.add_argument(
|
|
73
|
+
'--plot-width',
|
|
74
|
+
type=int,
|
|
75
|
+
default=80,
|
|
76
|
+
help='Set the plot width (default: 80)'
|
|
77
|
+
)
|
|
78
|
+
parser.add_argument(
|
|
79
|
+
'--plot-height',
|
|
80
|
+
type=int,
|
|
81
|
+
default=20,
|
|
82
|
+
help='Set the plot height (default: 20)'
|
|
83
|
+
)
|
|
72
84
|
parser.add_argument(
|
|
73
85
|
'command',
|
|
74
86
|
nargs=argparse.REMAINDER,
|
|
@@ -6,7 +6,7 @@ try:
|
|
|
6
6
|
except ImportError:
|
|
7
7
|
plt = None
|
|
8
8
|
|
|
9
|
-
def plot_charts(stats):
|
|
9
|
+
def plot_charts(stats, width=80, height=20):
|
|
10
10
|
if plt is None:
|
|
11
11
|
log.warning("plotext is not installed. Skipping plotting.")
|
|
12
12
|
return
|
|
@@ -19,6 +19,7 @@ def plot_charts(stats):
|
|
|
19
19
|
from .utils import extract_memory_rss
|
|
20
20
|
rss = extract_memory_rss(stats['memory_info'])
|
|
21
21
|
plt.clear_figure()
|
|
22
|
+
plt.plot_size(width=width, height=height)
|
|
22
23
|
plt.subplots(2, 1)
|
|
23
24
|
plt.subplot(1)
|
|
24
25
|
plt.title("CPU % over time")
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/requires.txt
RENAMED
|
File without changes
|
{profiler_runit-0.1.3.post1.dev1 → profiler_runit-0.1.4}/profiler_runit.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|