Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIs to reset TimePoint #1808

Closed
Tracked by #1815
jleibs opened this issue Apr 10, 2023 · 1 comment
Closed
Tracked by #1815

APIs to reset TimePoint #1808

jleibs opened this issue Apr 10, 2023 · 1 comment
Labels
🐍 Python API Python logging API

Comments

@jleibs
Copy link
Member

jleibs commented Apr 10, 2023

Calls to set_time_sequence / set_time_seconds currently mutate global (thread-local) state. While this is generally convenient, in a jupyter context it means that timeline data is likely to "leak" between two cells.

At a minimum we probably want an API to clear this state, though it's not obvious what to call it. Maybe: rr.reset_timepoint()?

A related question is whether we should always do this as part of rr.init(...).

@jleibs jleibs added the 🐍 Python API Python logging API label Apr 10, 2023
@jleibs jleibs closed this as completed Apr 14, 2023
@jleibs
Copy link
Member Author

jleibs commented Apr 14, 2023

Resolved in: #1826

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐍 Python API Python logging API
Projects
None yet
Development

No branches or pull requests

1 participant