Skip to content

Conversation

@zhongmingyuan
Copy link
Contributor

@zhongmingyuan zhongmingyuan commented Apr 14, 2025

Summary

Gracefully throw error for

start_profiling_delegate
end_profiling_delegate
end_profiling_delegate

  1. Changed the method signature to Result<>
  2. Use ET_CHECK_OR_RETURN_ERROR
    next: check_ready_to_add_event will need to come in later PRs

Test plan

test/run_oss_cpp_tests.sh

Not sure how to trigger CI in draft mode

@Gasoonjia @zhenyan-zhang-meta

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 14, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10147

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit a47a195 with merge base e84c319 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 14, 2025
@zhongmingyuan
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

@zhongmingyuan zhongmingyuan changed the title [#9971] Gracefully error out in ETDump for *profiling_delegate [#9971] Gracefully error out in ETDump part 3 for *profiling_delegate Apr 14, 2025
@zhongmingyuan zhongmingyuan marked this pull request as ready for review April 14, 2025 19:54
Copy link
Contributor

@Gasoonjia Gasoonjia left a comment

Choose a reason for hiding this comment

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

Thanks @zhongmingyuan for working on this! Expecially love to see you updating our doc.
Overall looks good and left some comments.
The main thing is remaining the functions interface in runtime/core/event_tracer_hooks_delegate.h as they are right now.

@Gasoonjia
Copy link
Contributor

Also please solve the ci issue.

@zhenyan-zhang-meta
Copy link
Contributor

Not sure how to trigger CI in draft mode

It has to be from us to manually trigger it for you. I've just done it.

Could you also regularly merge the latest changes from main into this branch?

@Gasoonjia
Copy link
Contributor

@zhenyan-zhang-meta I've merged this onto the latest main branch 15 minutes ago so it should be ok now.

@zhongmingyuan zhongmingyuan force-pushed the issue9971-profile branch 2 times, most recently from 53b7092 to ca14066 Compare April 15, 2025 17:26
@zhongmingyuan
Copy link
Contributor Author

Also please solve the ci issue.

Most of errors are related to huggingface. I guess they are temporary? Please feel free to suggest how to reproduce it locally here. Thanks

OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like google/mobilebert-uncased is not the path to a directory containing a file named config.json.

Copy link
Contributor

@Gasoonjia Gasoonjia left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for update!

@facebook-github-bot
Copy link
Contributor

@Gasoonjia has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@Gasoonjia
Copy link
Contributor

Please let me merge it -- there're some internal issue i need to fix

@zhongmingyuan
Copy link
Contributor Author

Please let me merge it -- there're some internal issue i need to fix

@Gasoonjia Thanks!. Do you need me to close this PR and wait for you?

@zhongmingyuan
Copy link
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label May 16, 2025
@larryliu0820
Copy link
Contributor

@Gasoonjia please help merge this

@github-actions
Copy link

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the stale PRs inactive for over 60 days label Aug 31, 2025
@nil-is-all nil-is-all removed the stale PRs inactive for over 60 days label Sep 3, 2025
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the stale PRs inactive for over 60 days label Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes stale PRs inactive for over 60 days topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants