GithubHelp home page GithubHelp logo

Comments (4)

vrecan avatar vrecan commented on June 10, 2024

I needed it to correctly calculate service time with iostats

from gopsutil.

shirou avatar shirou commented on June 10, 2024

Thank you for the issue and the PR. But gopsutil aims to built with "pure" golang, not cgo. This TODO means I don't know how to get _SC_CLK_TCK with system call or anything. If you know, please reopen this issue.

Thank you.

from gopsutil.

vrecan avatar vrecan commented on June 10, 2024

Just curious why do you care so much that it's using cgo? It builds easily on linux and it's in a file that will only build on linux.

I don't know of a way to get this without c, which means the implementation will always be wrong on some platforms.

from gopsutil.

shirou avatar shirou commented on June 10, 2024

Because if using cgo, it can not be cross compiled (at least it's not easy). Since gopsutil is cross-platform library, cross-compiling is very important. And this is why I am choosing golang.

from gopsutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.