mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
internal: Add some additional status ouput
This commit is contained in:
parent
e7285507f6
commit
63e3bf118d
2 changed files with 175 additions and 72 deletions
|
@ -90,6 +90,12 @@ fn memusage_linux() -> MemoryUsage {
|
|||
#[derive(Default, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)]
|
||||
pub struct Bytes(isize);
|
||||
|
||||
impl Bytes {
|
||||
pub fn new(bytes: isize) -> Bytes {
|
||||
Bytes(bytes)
|
||||
}
|
||||
}
|
||||
|
||||
impl Bytes {
|
||||
pub fn megabytes(self) -> isize {
|
||||
self.0 / 1024 / 1024
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue