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

Profiling from macos? #76

Open
srenatus opened this issue Apr 29, 2021 · 3 comments
Open

Profiling from macos? #76

srenatus opened this issue Apr 29, 2021 · 3 comments

Comments

@srenatus
Copy link
Contributor

I've been going through the docs on profiling wasm executions using wasmtime, and they state that there's perf and vtune.

On macos, I don't think running perf is entirely easy (see docker/for-mac#5500, since I don't control he VM host's kernel version, it would be best if the perf package came from the same source...).

However, it seems that vtune supports macos. But, I find that it's not an option for wasmtime-go -- Is there an underlying reason for this?

Thanks!

@alexcrichton
Copy link
Member

Unfortunately I don't really know. You can use Instruments.app to profile everything but jit code, but you probably want to profile jit code. I have never used vtune myself, so I don't know how well it works.

@tschneidereit
Copy link
Member

@jlb6740 and @abrown, is this something you can help with?

@jlb6740
Copy link

jlb6740 commented May 14, 2021

@srenatus Thanks for bringing this to our attention and sorry for not noticing this issue earlier. This initial patch was targeted and tested for ubuntu linux simply because it is a platform popular with many Vtune users. I'd say though that where Vtune runs and is an important for profiling, I think adding/accepting more support for those platforms would certainly be welcome.

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

4 participants