-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathworkingset.js
35 lines (30 loc) · 1.11 KB
/
workingset.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
WScript.Echo('hello');
var a = WScript.GetWorkingSet();
WScript.Echo("workingset = " + a.workingSet);
WScript.Echo("maxworkingset = " + a.maxWorkingSet);
WScript.Echo("pagefaultcount = " + a.pageFault);
WScript.Echo("private usage = " + a.privateUsage);
function print(obj, name)
{
WScript.Echo("print object " + name);
for (i in obj)
{
WScript.Echo(i + ' = ' + obj[i]);
}
}
var c = Debug.getHostInfo();
print(c, "hostinfo");
var d = Debug.getMemoryInfo();
for (i in d)
{
print(d[i], i);
}
var b = Debug.getWorkingSet();
WScript.Echo("workingset = " + b.workingSet);
WScript.Echo("maxworkingset = " + b.maxWorkingSet);
WScript.Echo("pagefaultcount = " + b.pageFault);
WScript.Echo("private usage = " + b.privateUsage);