Comments (7)
Hello! I'm glad to hear that this library is useful to you!
The proposal in #60 is to just remove the pid
field. So you can still get access to the PID information via the stat()
method. For example, to get the PID of the current process:
let me = procfs::process::Process::myself().unwrap();
let my_pid = me.stat().unwrap().pid;
(This code works today, too).
Does that answer your question?
from procfs.
Hi @uggla 👋
The short answer is: the API can still change in incompatible ways in a future 0.10.x release. I don't consider the API stable enough for a 1.0 release yet. (In fact there's an open draft PR that is proposing a breaking change). However in practice, the API breaking changes tend to be fairly small, and not that often.
I saw the comment you made in the scaphandre repo, so I'll also make a comment over there to talk about any specific issues related to your project.
from procfs.
Hi,
I just started using this library. First off, it's a fantastic library. I am using this library to build a service that's going to be deployed around 1000+ instances. My app uses PID field to monitor the process. If you are removing this option, will there an alternative way to find process PID through this library? Sorry for sending a message this late.
from procfs.
Hello,
The time returned in procfs::CpuTime should be a number of ticks in u64 as it is for processes in procfs::process::Stat. It's better to be able to get the values as returned by the kernel.
from procfs.
I'm just in the process of removing all clippy warnings and adding clippy checks.
This involves replacing a lot of manual prefix removals by the new strip_prefix method.
Since this method has been added in Rust 1.45
, this would certainly remove support for 1.33
and 1.38
versions.
I guess this could be considered a breaking change.
An alternative would be to simply ignore these clippy warnings.
from procfs.
Hello,
First thank you writing this lib this is really useful. I'm a contributor of the scaphandre project (https://github.com/hubblo-org/scaphandre) and we use procfs.
The project currently uses version 0.8.1. and we noticed that 0.9 introduced major breaking changes.
So before bumping and changing the code, we would like to know if the api is stable enough right now, as most of the issue in this ticket seems closed. Or if you still have plan to to introduce new breaking changes ?
from procfs.
This issue hasn't been updated in a long while, so I'm going to close it. We've been doing breaking changes in new minor versions, and this has been working well for us for a while. Thanks all
from procfs.
Related Issues (20)
- MSRV for procfs HOT 2
- Possible vulnerability HOT 1
- Fails to build on FreeBSD HOT 2
- Expose `/proc/<pid>/maps` parsing (and others) HOT 4
- PID should be u32 HOT 2
- Confusing documentation for Stat::comm HOT 3
- Support (limited) use on other platforms HOT 12
- MountInfo does not unescape special characters
- Process uid() fails on some kernels HOT 2
- error[E0599]: no associated item named `PATH` found for struct `OFlags` in the current scope
- Please publish `procfs-core` HOT 2
- No way to match `KernelStats::cpu_time` entries to CPUs when CPUs are hot [un]plugged
- Make CpuInfo iterable HOT 2
- Add support for parsing /proc/mdstat
- KernelVersion::current reads /proc/sys/kernel/osrelease, patch version is incorrect in ubuntu HOT 3
- Consider leaving meminfo values as kilobytes/kibibytes HOT 3
- [Bug] `FDsIter` memory leak HOT 8
- Improve our examples
- Add support for parsing /proc/net/netstat
- Add support for `/proc/net/nf_conntrack`
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 procfs.