diff options
author | Viliam Luc <vluc@cisco.com> | 2022-04-13 14:00:44 +0200 |
---|---|---|
committer | Viliam Luc <vluc@cisco.com> | 2022-09-28 10:28:03 +0000 |
commit | a2182abd2665aa9264464a99ad77718e2c7bbe18 (patch) | |
tree | b6552e130c503c0694167ca7485711e776fa2b79 /resources/tools/telemetry/__main__.py | |
parent | bff439b69ee71b654b1da92564ff62de7327fe71 (diff) |
telemetry: linux telemetry with perf-stat
Signed-off-by: Viliam Luc <vluc@cisco.com>
Change-Id: I17ced17a309cc0ac21c5fc94e570c89a456339e2
Diffstat (limited to 'resources/tools/telemetry/__main__.py')
-rwxr-xr-x | resources/tools/telemetry/__main__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/tools/telemetry/__main__.py b/resources/tools/telemetry/__main__.py index 2ab87b661a..7a612b8eea 100755 --- a/resources/tools/telemetry/__main__.py +++ b/resources/tools/telemetry/__main__.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -19,6 +19,7 @@ from argparse import ArgumentParser, RawDescriptionHelpFormatter from .executor import Executor + def main(): """ Main entry function when called from cli @@ -45,5 +46,6 @@ def main(): else: Executor(args.config).execute(args.hook) + if __name__ == u"__main__": main() |