Comments (4)
I needed it to correctly calculate service time with iostats
from gopsutil.
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.
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.
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)
- AIX Support Coming? HOT 5
- Weird data race HOT 1
- Information related to Model, Family and VendorID are unavailable for POWER9 and above.
- arch linux host version `"rolling"` -> `rolling` HOT 2
- [RFC] `winver.exe` output as platform version for windows hosts HOT 3
- Process.CreateTime reports incorrect or misleading time on Linux HOT 1
- host.Users() returns nil on macOS HOT 9
- windows's swap mem wrong
- cpu Mhz with current, max and min.
- Data race
- GPU Stats HOT 1
- macos tests failed on Github Action after latest image update
- Process information not reported for FreeBSD ARM64 HOT 1
- Can't compile for openbsd HOT 2
- When I call process.Percent,memory increase slowly
- proc.openfiles() crash HOT 1
- Monitor specific ports for network HOT 1
- v4 release plan HOT 1
- Is it possible to obtain the power of the whole machine? HOT 2
- Standart interfaces for services HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gopsutil.