Add global profile timeout var

big_data_lines
Tyler Goodlet 2022-04-01 13:27:07 -04:00
parent 947a514153
commit 6410c68e2e
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ from functools import wraps
# NOTE: you can pass a flag to enable this: # NOTE: you can pass a flag to enable this:
# ``piker chart <args> --profile``. # ``piker chart <args> --profile``.
_pg_profile: bool = False _pg_profile: bool = False
ms_slower_then: float = 10
def pg_profile_enabled() -> bool: def pg_profile_enabled() -> bool: