Skip to content

Commit

Permalink
Merge branch 'master' into 'main'
Browse files Browse the repository at this point in the history
Initial Commit

See merge request shardus/shardus-perf-utils!1
  • Loading branch information
Thant committed Nov 4, 2021
2 parents a9cd4c5 + d2e1908 commit 49f7121
Show file tree
Hide file tree
Showing 41 changed files with 5,682 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/gts/"
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.DS_Store
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/shardus-perf-utils.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require('gts/.prettierrc.json')
}
2 changes: 2 additions & 0 deletions build/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: any;
export default _default;
8 changes: 8 additions & 0 deletions build/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/src/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions build/src/profiler/StringifyReduce.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export declare const makeShortHash: (x: any, n?: number) => any;
export declare const stringifyReduce: (val: any, isArrayProp?: boolean) => any;
export declare const replacer: (key: any, value: any) => any;
export declare const reviver: (key: any, value: any) => any;
export declare const reviverExpander: (key: any, value: any) => any;
133 changes: 133 additions & 0 deletions build/src/profiler/StringifyReduce.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/src/profiler/StringifyReduce.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions build/src/profiler/memoryReporting.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
export interface MemoryReporting {
}
export declare let memoryReportingInstance: MemoryReporting;
declare type MemItem = {
category: string;
subcat: string;
itemKey: string;
count: number;
};
export declare class MemoryReporting {
report: MemItem[];
shardus: any;
lastCPUTimes: any[];
statistics: any;
stateManager: any;
cycleCreator: any;
nodeList: any;
handlers: any;
constructor(shardus: any, statistics: any, stateManager: any, cycleCreator: any, nodeList: any);
setStatistics: (statistics: any) => void;
memoryHandler: (req: any, res: any) => Promise<void>;
memoryShortHandler: (req: any, res: any) => Promise<void>;
memoryGcHandler: (req: any, res: any) => void;
scaleFactorHandler: (req: any, res: any) => void;
nodeListHandler: (req: any, res: any) => void;
addNodesToReport: () => void;
getMemoryStringBasic: () => string;
updateCpuPercent: () => void;
addToReport: (category: string, subcat: string, itemKey: string, count: number) => void;
reportToStream: (report: MemItem[], indent: any) => string;
gatherReport: () => void;
gatherStateManagerReport: () => void;
getCPUTimes: () => any[];
cpuPercent: () => number;
roundTo3decimals: (num: any) => number;
systemProcessReport: () => void;
}
export {};
Loading

0 comments on commit 49f7121

Please sign in to comment.