Skip to content

Commit 07a7d4d

Browse files
committed
Prepare for release
1 parent d6663e9 commit 07a7d4d

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

lib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
bool cpuTimeCpp(const size_t& pid, size_t& user, size_t& kernel);
55

6-
size_t memInfoCpp(const size_t &pid);
6+
size_t memInfoCpp(const size_t& pid);

lib_linux.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Memory size in bytes
5050
Linux uses a system where all memory is considered virtual memory stored with pages, and those addresses convert to physical (RAM) or 'virtual' memory on disk.
5151
Retrieved from /proc/[pid]/statm
5252
*/
53-
size_t memInfoCpp(const size_t &pid) {
53+
size_t memInfoCpp(const size_t& pid) {
5454
std::ifstream file("/proc/" + std::to_string(pid) + "/statm");
5555
// Check that this pid is valid
5656
if (!file.good()) {

lib_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool cpuTimeCpp(const size_t& pid, size_t& user, size_t& kernel) {
3939
Gets working set size (memory) in bytes. Includes both private and shared working sets.
4040
Note that this is different from the value in the task manager, because that excludes the shared working set.
4141
*/
42-
size_t memInfoCpp(const size_t &pid) {
42+
size_t memInfoCpp(const size_t& pid) {
4343
HANDLE process = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, false, pid);
4444
if (process == NULL) {
4545
std::cerr << "Failed to open process " << pid << " with PROCESS_QUERY_LIMITED_INFORMATION when getting memory data." << std::endl;

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@
55
"name": "kaih2o",
66
"url": "https://github.com/2kai2kai2"
77
},
8-
"version": "1.0.12",
8+
"version": "1.1.0",
99
"keywords": [
1010
"process",
1111
"processes",
1212
"ps",
1313
"pid",
14-
"lookup"
14+
"lookup",
15+
"usage",
16+
"resource",
17+
"performance",
18+
"memory",
19+
"cpu"
1520
],
1621
"repository": {
1722
"url": "https://github.com/2kai2kai2/node-ps-data"

0 commit comments

Comments
 (0)