@openfin/workspace-platform 19.2.2 → 19.2.3
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.
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
export declare const workspacePerformancePrefix = "of-workspace-";
|
|
2
2
|
type WorkspacePerformanceMarks = 'home-registration' | 'dock-registration' | 'store-registration' | 'home-show' | 'dock-show' | 'store-show' | 'workspace-app-started' | 'home-window-initialized' | 'dock-window-initialized' | 'store-window-initialized';
|
|
3
|
+
type BrowserWindowPerformanceMarks = string;
|
|
4
|
+
type PerformanceMarks = WorkspacePerformanceMarks | BrowserWindowPerformanceMarks;
|
|
3
5
|
/**
|
|
4
6
|
* @classdesc
|
|
5
7
|
* WorkspacePerformance is a class that provides a set of methods to measure performance of workspace
|
|
6
8
|
*
|
|
7
9
|
*/
|
|
8
10
|
declare class WorkspacePerformance {
|
|
9
|
-
mark(markName:
|
|
10
|
-
markStart(markName:
|
|
11
|
-
markEnd(markName:
|
|
12
|
-
markEndAndMeasure(markName:
|
|
13
|
-
markAndMeasure(markName:
|
|
11
|
+
mark(markName: PerformanceMarks): void;
|
|
12
|
+
markStart(markName: PerformanceMarks): void;
|
|
13
|
+
markEnd(markName: PerformanceMarks): void;
|
|
14
|
+
markEndAndMeasure(markName: PerformanceMarks): PerformanceMeasure;
|
|
15
|
+
markAndMeasure(markName: PerformanceMarks, measureAgainst: PerformanceMarks): PerformanceMeasure;
|
|
14
16
|
reportWorkspacePerformanceEntries(): PerformanceEntry[];
|
|
15
17
|
reportWorkspacePerformance(): {
|
|
16
18
|
name: string;
|
|
@@ -24,16 +24,7 @@ export declare const registerNotificationUsage: (status: RegisterUsageStatus) =>
|
|
|
24
24
|
export declare const registerPlatformUsage: (status: RegisterUsageStatus) => void;
|
|
25
25
|
export declare const registerThemingUsage: (status: RegisterUsageStatus) => void;
|
|
26
26
|
export declare const registerMicroflowUsage: (microflowName: string, status: RegisterUsageStatus) => void;
|
|
27
|
-
export
|
|
28
|
-
Browser = "Browser",
|
|
29
|
-
Dock = "Dock",
|
|
30
|
-
Home = "Home",
|
|
31
|
-
Notification = "Notification",
|
|
32
|
-
Storefront = "Store",
|
|
33
|
-
Platform = "Platform",
|
|
34
|
-
Theming = "Theming",
|
|
35
|
-
Interop = "Interop"
|
|
36
|
-
}
|
|
27
|
+
export type AnalyticsSource = 'Browser' | 'Dock' | 'Home' | 'Notification' | 'Store' | 'Platform' | 'Theming' | 'Interop';
|
|
37
28
|
/**
|
|
38
29
|
* Event for analytics
|
|
39
30
|
*/
|