Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Commit e76e1cc

Browse files
committed
Remove unused methods
1 parent 9a29064 commit e76e1cc

2 files changed

Lines changed: 0 additions & 50 deletions

File tree

_packages/native-preview/src/api/proto.generated.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ export type APIMethod<TParams, TResult> = { params: TParams; result: TResult; };
1111

1212
export interface APIMethodInfo {
1313
release: APIMethod<ReleaseParams, void>;
14-
getServerTiming: APIMethod<void, ServerTimingInfo>;
15-
resetServerTiming: APIMethod<void, void>;
1614
initialize: APIMethod<null, InitializeResponse>;
1715
updateSnapshot: APIMethod<UpdateSnapshotParams, UpdateSnapshotResponse>;
1816
updateTemporarySnapshot: APIMethod<UpdateTemporarySnapshotParams, UpdateSnapshotResponse>;
@@ -158,22 +156,6 @@ export interface ReleaseParams {
158156
snapshot: number;
159157
}
160158

161-
/**
162-
* serverTimingInfo is a point-in-time snapshot of collected server timing,
163-
* returned to clients in response to a getServerTiming request.
164-
*/
165-
export interface ServerTimingInfo {
166-
/** Enabled reports whether server-side timing collection is active. */
167-
enabled: boolean;
168-
/** Totals are the running totals across every handled request. */
169-
totals: ServerTimingTotals;
170-
/**
171-
* RecentRequests are the most recent requests, oldest to newest, up to
172-
* serverRecentRequestCapacity.
173-
*/
174-
recentRequests: ServerRequestTiming[] | null;
175-
}
176-
177159
/** InitializeResponse is returned by the initialize method. */
178160
export interface InitializeResponse {
179161
/** UseCaseSensitiveFileNames indicates whether the host file system is case-sensitive. */
@@ -875,27 +857,6 @@ export interface ProfileResult {
875857
file: string;
876858
}
877859

878-
/** serverTimingTotals holds running totals accumulated across every handled request. */
879-
export interface ServerTimingTotals {
880-
/** RequestCount is the total number of requests measured. */
881-
requestCount: number;
882-
/** TotalProcessingTimeMs is the sum of server processing time, in milliseconds. */
883-
totalProcessingTimeMs: number;
884-
}
885-
886-
/** serverRequestTiming is a single server-side request's processing-time sample. */
887-
export interface ServerRequestTiming {
888-
/** Method is the API method that was handled. */
889-
method: string;
890-
/**
891-
* ProcessingTimeMs is the wall-clock time the server spent handling the
892-
* request, in milliseconds.
893-
*/
894-
processingTimeMs: number;
895-
/** Timestamp is the Unix time in milliseconds when the request completed. */
896-
timestamp: number;
897-
}
898-
899860
/**
900861
* APIFileChanges describes file changes to apply when updating a snapshot.
901862
* Either InvalidateAll is true (discard all caches) or Changed/Created/Deleted

internal/api/proto.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,6 @@ func parseProjectHandle(handle ProjectID) tspath.Path {
6161
const (
6262
MethodRelease Method = "release"
6363

64-
// MethodGetServerTiming retrieves the server's collected per-request
65-
// processing-time totals and recent-request ring buffer. It is handled by
66-
// the connection itself (not the session) and is not recorded in the timing
67-
// it reports.
68-
MethodGetServerTiming Method = "getServerTiming"
69-
70-
// MethodResetServerTiming clears the server's collected timing totals and
71-
// recent-request ring buffer. Like MethodGetServerTiming, it is handled by
72-
// the connection itself and is not recorded.
73-
MethodResetServerTiming Method = "resetServerTiming"
74-
7564
MethodInitialize Method = "initialize"
7665
MethodUpdateSnapshot Method = "updateSnapshot"
7766
MethodUpdateTemporarySnapshot Method = "updateTemporarySnapshot"

0 commit comments

Comments
 (0)