macpm 0.23__tar.gz → 0.24__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: macpm
3
- Version: 0.23
3
+ Version: 0.24
4
4
  Summary: Performance monitoring CLI tool for Apple Silicon
5
5
  Home-page: https://github.com/visualcjy/macpm
6
6
  Author: Jinyu Chen
@@ -39,6 +39,7 @@ forked form https://github.com/tlkh/asitop
39
39
  5. press ESC or q to quit
40
40
  6. press LEFT or RIGHT to switch color, press 1 : default view, 2 : show_core view
41
41
  7. fix M1 has no "down_ratio" tag problem, fix p-core cpu usage
42
+ press ctrl + r to reset the max and peak record
42
43
 
43
44
  A Python-based `nvtop`-inspired command line tool for Apple Silicon (aka M1) Macs.
44
45
 
@@ -21,6 +21,7 @@ forked form https://github.com/tlkh/asitop
21
21
  5. press ESC or q to quit
22
22
  6. press LEFT or RIGHT to switch color, press 1 : default view, 2 : show_core view
23
23
  7. fix M1 has no "down_ratio" tag problem, fix p-core cpu usage
24
+ press ctrl + r to reset the max and peak record
24
25
 
25
26
  A Python-based `nvtop`-inspired command line tool for Apple Silicon (aka M1) Macs.
26
27
 
@@ -9,7 +9,7 @@ import psutil
9
9
  import plistlib
10
10
  import curses
11
11
 
12
- version = 'macpm v0.23'
12
+ version = 'macpm v0.24'
13
13
  parser = argparse.ArgumentParser(
14
14
  description=f'{version}: Performance monitoring CLI tool for Apple Silicon')
15
15
  parser.add_argument('--interval', type=int, default=1,
@@ -316,20 +316,20 @@ def parse_gpu_metrics(powermetrics_parse):
316
316
  return gpu_metrics_dict
317
317
 
318
318
  def parse_disk_metrics(powermetrics_parse):
319
- disk_metrics = powermetrics_parse["disk"]
319
+ disk_metrics = powermetrics_parse.get("disk",{})
320
320
  disk_metrics_dict = {
321
- "read_iops": int(disk_metrics["rops_per_s"]),
322
- "write_iops": int(disk_metrics["wops_per_s"]),
323
- "read_Bps": int(disk_metrics["rbytes_per_s"]),
324
- "write_Bps": int(disk_metrics["wbytes_per_s"]),
321
+ "read_iops": int(disk_metrics.get("rops_per_s",0)),
322
+ "write_iops": int(disk_metrics.get("wops_per_s",0)),
323
+ "read_Bps": int(disk_metrics.get("rbytes_per_s",0)),
324
+ "write_Bps": int(disk_metrics.get("wbytes_per_s",0)),
325
325
  }
326
326
  return disk_metrics_dict
327
327
 
328
328
  def parse_network_metrics(powermetrics_parse):
329
- network_metrics = powermetrics_parse["network"]
329
+ network_metrics = powermetrics_parse.get("network",{})
330
330
  network_metrics_dict = {
331
- "out_Bps": int(network_metrics["obyte_rate"]),
332
- "in_Bps": int(network_metrics["ibyte_rate"]),
331
+ "out_Bps": int(network_metrics.get("obyte_rate",0)),
332
+ "in_Bps": int(network_metrics.get("ibyte_rate",0)),
333
333
  }
334
334
  return network_metrics_dict
335
335
 
@@ -905,6 +905,9 @@ def begin(stdscr):
905
905
  view1.construct(soc_info_dict,args)
906
906
  view = 2
907
907
  clear_console()
908
+ elif key == 0x12:
909
+ #press ctrl+r to reset max and peak values
910
+ view1.__init__(soc_info_dict,args)
908
911
 
909
912
  if view == 1 or view == 2:
910
913
  view1.display(powermetrics_parse,args)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: macpm
3
- Version: 0.23
3
+ Version: 0.24
4
4
  Summary: Performance monitoring CLI tool for Apple Silicon
5
5
  Home-page: https://github.com/visualcjy/macpm
6
6
  Author: Jinyu Chen
@@ -39,6 +39,7 @@ forked form https://github.com/tlkh/asitop
39
39
  5. press ESC or q to quit
40
40
  6. press LEFT or RIGHT to switch color, press 1 : default view, 2 : show_core view
41
41
  7. fix M1 has no "down_ratio" tag problem, fix p-core cpu usage
42
+ press ctrl + r to reset the max and peak record
42
43
 
43
44
  A Python-based `nvtop`-inspired command line tool for Apple Silicon (aka M1) Macs.
44
45
 
@@ -4,7 +4,7 @@ long_description = 'Performance monitoring CLI tool for Apple Silicon'
4
4
 
5
5
  setup(
6
6
  name='macpm',
7
- version='0.23',
7
+ version='0.24',
8
8
  author='Jinyu Chen',
9
9
  author_email='visualcjy@mail.com',
10
10
  url='https://github.com/visualcjy/macpm',
@@ -31,3 +31,9 @@ setup(
31
31
  ],
32
32
  zip_safe=False
33
33
  )
34
+
35
+ release_notes_0_2_3 = """
36
+ - ix M1 has no "down_ratio" tag problem
37
+ - fix p-core cpu usage。
38
+ """
39
+
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes