Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

OSX Support #19

Open
petems opened this issue Apr 27, 2016 · 4 comments
Open

OSX Support #19

petems opened this issue Apr 27, 2016 · 4 comments

Comments

@petems
Copy link

petems commented Apr 27, 2016

No idea how hard this would be, but would be cool to be able to run this on non-Linux OS's, particularly OSX for me 😄

Right now it fails on fatal error: 'linux/taskstats.h' file not found (unsurprising, as it's not Linux)

@mranney
Copy link
Contributor

mranney commented Apr 27, 2016

While the UI is generic, the stats gathering methods are very Linux-specific. We read files from /proc and talk to the Linux taskstats system.

That said, if you or someone else wants to figure out how to get this info out of an OSX kernel, I would be happy to integrate this.

@petems
Copy link
Author

petems commented Apr 27, 2016

Yeah, there's a bit of existing knowledge from the work on from htop-osx

@mranney
Copy link
Contributor

mranney commented Apr 27, 2016

Oh yeah, I forgot that there's htop for OSX. If there's a way to get time spent in the run queue, then we might be able to do it.

Sadly, I don't have time to embark on this quest. I'm happy to help and advise if you or someone else is though.

@petems
Copy link
Author

petems commented Apr 27, 2016

Yep, in fact proper OSX support got merged into htop proper recently: https://github.com/hishamhm/htop/blob/master/darwin/DarwinProcess.h

I'm gonna give it a shot but my C knowledge is pretty bare. Hopefully someone who know's more might be able to help in the future 😄

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

No branches or pull requests

2 participants