plotjuggler: Longer max stream buffer size (#25399)

* longer streams

* more consistent

* reduce diff
pull/24296/head
grekiki 3 years ago committed by GitHub
parent 463774f61c
commit 7f6464d97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/plotjuggler/juggle.py

@ -24,7 +24,7 @@ RELEASES_URL="https://github.com/commaai/PlotJuggler/releases/download/latest"
INSTALL_DIR = os.path.join(juggle_dir, "bin") INSTALL_DIR = os.path.join(juggle_dir, "bin")
PLOTJUGGLER_BIN = os.path.join(juggle_dir, "bin/plotjuggler") PLOTJUGGLER_BIN = os.path.join(juggle_dir, "bin/plotjuggler")
MINIMUM_PLOTJUGGLER_VERSION = (3, 5, 2) MINIMUM_PLOTJUGGLER_VERSION = (3, 5, 2)
MAX_STREAMING_BUFFER_SIZE = 1000
def install(): def install():
m = f"{platform.system()}-{platform.machine()}" m = f"{platform.system()}-{platform.machine()}"
@ -79,7 +79,7 @@ def start_juggler(fn=None, dbc=None, layout=None, route_or_segment_name=None):
if route_or_segment_name is not None: if route_or_segment_name is not None:
extra_args += f" --window_title \"{route_or_segment_name}\"" extra_args += f" --window_title \"{route_or_segment_name}\""
cmd = f'{PLOTJUGGLER_BIN} --plugin_folders {INSTALL_DIR}{extra_args}' cmd = f'{PLOTJUGGLER_BIN} --buffer_size {MAX_STREAMING_BUFFER_SIZE} --plugin_folders {INSTALL_DIR}{extra_args}'
subprocess.call(cmd, shell=True, env=env, cwd=juggle_dir) subprocess.call(cmd, shell=True, env=env, cwd=juggle_dir)

Loading…
Cancel
Save