pyre-cli 1.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +278 -17
- package/dist/index.js +1763 -350
- package/package.json +6 -3
- package/parity.md +542 -0
- package/src/formatters/index.ts +17 -0
- package/src/formatters/output.ts +165 -0
- package/src/formatters/render.ts +659 -0
- package/src/formatters/themes.ts +115 -0
- package/src/formatters/types.ts +62 -0
- package/src/history.ts +153 -0
- package/src/index.ts +201 -0
- package/src/live/export.ts +76 -0
- package/src/live/index.ts +16 -0
- package/src/live/input.ts +443 -0
- package/src/live/render.ts +146 -0
- package/src/live/state.ts +103 -0
- package/src/live/types.ts +23 -0
- package/src/monitors/collectors.ts +687 -0
- package/src/monitors/index.ts +14 -0
- package/src/monitors/run.ts +18 -0
- package/src/monitors/smc.ts +107 -0
- package/src/monitors/types.ts +148 -0
- package/src/p2p/client.ts +197 -0
- package/src/p2p/index.ts +3 -0
- package/src/p2p/protocol.ts +71 -0
- package/src/p2p/server.ts +219 -0
- package/src/p2p/types.ts +71 -0
- package/src/pyre_img +0 -0
- package/src/sparkline.ts +34 -0
- package/src/splash.ts +102 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live dashboard mode types.
|
|
3
|
+
*
|
|
4
|
+
* Defines the options passed to {@link startLive}, the
|
|
5
|
+
* export format enum, and the input-mode union used
|
|
6
|
+
* throughout the interactive session.
|
|
7
|
+
*/
|
|
8
|
+
export interface LiveOptions {
|
|
9
|
+
interval: number;
|
|
10
|
+
detailed?: boolean;
|
|
11
|
+
exportDir?: string;
|
|
12
|
+
autoLog?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type ExportFormat = 'json' | 'csv' | 'tsv';
|
|
16
|
+
|
|
17
|
+
type InputMode = null | 'filter' | 'kill' | 'signal' | 'customizer';
|
|
18
|
+
|
|
19
|
+
type SortMode = 'cpu' | 'mem' | 'pid' | 'user' | 'command' | 'state' | 'threads' | 'runtime';
|
|
20
|
+
|
|
21
|
+
type GraphMode = 'spark' | 'bar';
|
|
22
|
+
|
|
23
|
+
export type { InputMode, SortMode, GraphMode };
|