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

[refactor] Remove unused functions in misc. #3671

Merged
merged 3 commits into from
Dec 2, 2021

Conversation

ailzhang
Copy link
Contributor

@ailzhang ailzhang commented Dec 1, 2021

Related issue = #

@netlify
Copy link

netlify bot commented Dec 1, 2021

✔️ Deploy Preview for jovial-fermat-aa59dc canceled.

🔨 Explore the source changes: 8e3620a

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/61a85e430bf21200087a7742

@@ -230,26 +197,6 @@ def get_kernel_stats():
return _ti_core.get_kernel_stats()


def print_async_stats(include_kernel_profiler=False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function seems related to our async project. @k-ye wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@strongoier I deleted mainly because it wasn't even in the __all__ in this file, so it's very likely that this one is not used...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is some random util function...

from colorama import Fore


def enable_excepthook():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we definitely want to remove this. If we finally decide to remove this, we can remove all _taichi_skip_traceback in the codebase and all docs or configs related to this feature (https://github.com/taichi-dev/taichi/search?q=excepthook).

As we have @lin-hitonami 's new error report mechanism now, do we still want to keep the hacky pretty printing of the traceback stack? @k-ye

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fully down to remove _taichi_skip_traceback :D

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, #2489

Copy link
Contributor

@strongoier strongoier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! BTW do you plan to remove _taichi_skip_traceback related stuff in another PR?

@ailzhang
Copy link
Contributor Author

ailzhang commented Dec 2, 2021

@strongoier Yea that one should be separate PR for sure, I'll open an issue first to see if anyone is interested ;)

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

Successfully merging this pull request may close these issues.

3 participants