Add global profile timeout var

m4_corrections
Tyler Goodlet 2022-04-01 13:27:07 -04:00
parent f1f7241a1e
commit e1cfbc78ee
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: