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

Track mem leak #27

Open
ZiadMansourM opened this issue May 12, 2023 · 0 comments
Open

Track mem leak #27

ZiadMansourM opened this issue May 12, 2023 · 0 comments

Comments

@ZiadMansourM
Copy link
Owner

ZiadMansourM commented May 12, 2023

# Print global variable names
print("Global variables:")
# Create a new dictionary without comments
globals_without_comments = {name: value for name, value in globals().items() if not name.startswith('_')}
for name in list(globals_without_comments):
    print(name)

# Print local variable names
print("Local variables:")
locals_without_comments = {name: value for name, value in locals().items() if not name.startswith('_')}
for name in list(locals_without_comments):
    print(name)
Screenshot 2023-05-12 at 10 35 14 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant