Add global profile timeout var
parent
f1f7241a1e
commit
e1cfbc78ee
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue