EmergeTools / ETTrace

Easily and accurately profile iOS apps
https://www.emergetools.com/ettrace
MIT License
567 stars 23 forks source link

macOS support #69

Closed taher-mosbah closed 11 months ago

taher-mosbah commented 11 months ago

Hello 👋

Does ETTrace support macOS at all ? I tried running ettrace --simulator and I can see a 1Mb output.json however loading it into https://www.emergetools.com/flamegraph does nothing. Browser dev console shows the following JS error: TypeError: e.threads.map is not a function. (In 'e.threads.map(e=>e.nodes)', 'e.threads.map' is undefined)

noahsmartin commented 11 months ago

Hi @taher-mosbah it should work on macOS, but it sounds like you are trying to use the file generated by the swift package in the app, rather than the file generated by the ettrace CLI. When you run ettrace --simulator it should print something like "Results saved to file://..." can you get the file from that directory? It should be named like "output-\(threadId).json"

taher-mosbah commented 11 months ago

indeed it works as expected, thanks !