Skip to content

Commit

Permalink
fix typo: argment -> argument
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Dec 27, 2024
1 parent c0e1943 commit 33d330c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from .system_performance_plotter_base import PREDEFINED_COMPONENT_NAMES
from .system_performance_plotter_base import SystemPerformancePlotterBase
from .system_performance_plotter_base import create_common_argment
from .system_performance_plotter_base import create_common_argument


class CpuUsagePlotter(SystemPerformancePlotterBase):
Expand Down Expand Up @@ -43,7 +43,7 @@ def update_metrics_func(self, topic_name, data, date_time):


def main():
args = create_common_argment(100)
args = create_common_argument(100)
plotter = CpuUsagePlotter(args, "CPU Usage [%]", "_cpu_usage")
plotter.run()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from .system_performance_plotter_base import PREDEFINED_COMPONENT_NAMES
from .system_performance_plotter_base import SystemPerformancePlotterBase
from .system_performance_plotter_base import create_common_argment
from .system_performance_plotter_base import create_common_argument


class MemoryUsagePlotter(SystemPerformancePlotterBase):
Expand Down Expand Up @@ -43,7 +43,7 @@ def update_metrics_func(self, topic_name, data, date_time):


def main():
args = create_common_argment()
args = create_common_argument()
plotter = MemoryUsagePlotter(args, "Memory Usage [MiB]", "_memory_usage")
plotter.run()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .system_performance_plotter_base import PREDEFINED_COMPONENT_NAMES
from .system_performance_plotter_base import SystemPerformancePlotterBase
from .system_performance_plotter_base import create_common_argment
from .system_performance_plotter_base import create_common_argument


class ProcessingTimePlotter(SystemPerformancePlotterBase):
Expand Down Expand Up @@ -50,7 +50,7 @@ def update_metrics_func(self, topic_name, data, date_time):


def main():
args = create_common_argment(100)
args = create_common_argument(100)
plotter = ProcessingTimePlotter(args, "Processing Time [ms]", "_processing_time")
plotter.run()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def run(self):
plt.show()


def create_common_argment(ymax=None):
def create_common_argument(ymax=None):
parser = argparse.ArgumentParser(description="report system performance from rosbag.")
parser.add_argument("bag_file", help="input bagfile")
parser.add_argument("-c", "--component-name", default="all", type=str, help="component name")
Expand Down

0 comments on commit 33d330c

Please sign in to comment.