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

Using hotspot On Windows Host After Profiling On Linux System #136

Closed
ChetanArvindPatil opened this issue May 22, 2018 · 6 comments
Closed

Comments

@ChetanArvindPatil
Copy link

ChetanArvindPatil commented May 22, 2018

Hi All,

The remote server I have is running CentOS where I profile all the workload using Linux Perf. However, the host machine I have is Windows 10.

I want to make use of CPU FlameGraphs with this hotspot tool for better visualization, but don't think hotspot is supported on Windows. X server based connection doesn't always work as expected.

Please suggest what should I do in such case?

Thanks.

@ChetanArvindPatil ChetanArvindPatil changed the title Using hotspot On Windows Host After Profiling on Linux System Using hotspot On Windows Host After Profiling On Linux System May 22, 2018
@milianw
Copy link
Member

milianw commented May 23, 2018

We'd first need to figure out how to make elfutils work on Windows. Afaik Ulf Hermann from TQC has been working on that for QtCreator's perf integration. Once we have that, building hotspot for windows shouldn't be too hard. We'll have to fix some platform specific things here and there, but otherwise it should be straight forward, compared to getting elfutils to work on Windows.

But: I personally don't have any incentive to work on this task right now. So someone else (you?) needs to step up and to the work required to make hotspot work on Windows.

@ChetanArvindPatil
Copy link
Author

Hi Milian,

I would like to do this, but I never worked on Qt and related programming environments. It will take a lot of time for me to get up to the level required to get this done.

Still willing to help, need inputs.

Thanks.

@milianw
Copy link
Member

milianw commented May 24, 2018

The first task isn't related to Qt at all. It's about figuring out how to compile elfutils on Windows. You'll probably need gnulib. Anything else needs to be figured out, I can't help more.

Once we have elfutils on Windows, we can use it for perfparser and then both for Hotspot.

@ChetanArvindPatil
Copy link
Author

@milianw:

Do you think HotSpot can work on Windows Subsystem For Linux?

@milianw
Copy link
Member

milianw commented Jul 25, 2018

@patilchetan yes that can potentially work, if you get the gui/X to work. Afaik it's somehow possible, but requires some work.

@ChetanArvindPatil
Copy link
Author

@milianw:

I can confirm that Hotspot works with WSL Ubuntu on Windows 10. Steps are same as building it on any Linux server as long as one has enabled WSL on Windows 10:

  • Step 1: Build Hotspot as per the README on this repo on WSL Ubuntu shell on Windows 10
  • Step 2: Configure X server on WSL Ubuntu shell on Windows 10
  • Step 3: Install Xming on Windows 10
  • Step 4: Enjoy

Screenshot:

hotspot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants