1 | import type { DebugImage, Envelope, Event, EventEnvelope, Transaction } from '@sentry/types';
|
2 | import type { Profile, ThreadCpuProfile } from '@sentry/types/src/profiling';
|
3 | import type { JSSelfProfile, JSSelfProfiler } from './jsSelfProfiling';
|
4 |
|
5 |
|
6 |
|
7 | export declare function enrichWithThreadInformation(profile: ThreadCpuProfile | JSSelfProfile): ThreadCpuProfile;
|
8 | export interface ProfiledEvent extends Event {
|
9 | sdkProcessingMetadata: {
|
10 | profile?: JSSelfProfile;
|
11 | };
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function createProfilePayload(profile_id: string, start_timestamp: number | undefined, processed_profile: JSSelfProfile, event: ProfiledEvent): Profile;
|
26 |
|
27 |
|
28 |
|
29 | export declare function isProfiledTransactionEvent(event: Event): event is ProfiledEvent;
|
30 |
|
31 |
|
32 |
|
33 | export declare function isAutomatedPageLoadTransaction(transaction: Transaction): boolean;
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | export declare function convertJSSelfProfileToSampledFormat(input: JSSelfProfile): Profile['profile'];
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare function addProfilesToEnvelope(envelope: EventEnvelope, profiles: Profile[]): Envelope;
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | export declare function findProfiledTransactionsFromEnvelope(envelope: Envelope): Event[];
|
50 |
|
51 |
|
52 |
|
53 | export declare function applyDebugMetadata(resource_paths: ReadonlyArray<string>): DebugImage[];
|
54 |
|
55 |
|
56 |
|
57 | export declare function isValidSampleRate(rate: unknown): boolean;
|
58 | export declare const MAX_PROFILE_DURATION_MS = 30000;
|
59 |
|
60 |
|
61 |
|
62 | export declare function startJSSelfProfile(): JSSelfProfiler | undefined;
|
63 |
|
64 |
|
65 |
|
66 | export declare function shouldProfileTransaction(transaction: Transaction): boolean;
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 | export declare function createProfilingEvent(profile_id: string, start_timestamp: number | undefined, profile: JSSelfProfile, event: ProfiledEvent): Profile | null;
|
73 |
|
74 |
|
75 |
|
76 | export declare function getActiveProfilesCount(): number;
|
77 |
|
78 |
|
79 |
|
80 | export declare function takeProfileFromGlobalCache(profile_id: string): JSSelfProfile | undefined;
|
81 |
|
82 |
|
83 |
|
84 | export declare function addProfileToGlobalCache(profile_id: string, profile: JSSelfProfile): void;
|
85 |
|
\ | No newline at end of file |