Skip to content

Commit da3c3e6

Browse files
and-oliDevtools-frontend LUCI CQ
authored andcommitted
[Perf panel] Remove support for experimental server timings track
We did not receive clear signal about the usefulness of having a mechanism to display server timings in the client timeline. Developers will still be able to see server timings in the details of network requests (as of https://crrev.com/c/6387100) and if needed, a server timing track could be injected using the extensibility API. (granted, a mechanisim to map server timestamps to the client clock needs to be implemented, but this doesn't seem to be a big constraint as devs are alreading doing so, like React). Bug: 403223638 Change-Id: I10d80fe10598dcf7c3014cfc1fcbce03b6024fb5 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6387102 Reviewed-by: Jack Franklin <[email protected]> Commit-Queue: Andres Olivares <[email protected]>
1 parent 5013142 commit da3c3e6

21 files changed

+1
-451
lines changed

config/gni/devtools_grd_files.gni

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,6 @@ grd_files_debug_sources = [
11461146
"front_end/models/trace/handlers/ScreenshotsHandler.js",
11471147
"front_end/models/trace/handlers/ScriptsHandler.js",
11481148
"front_end/models/trace/handlers/SelectorStatsHandler.js",
1149-
"front_end/models/trace/handlers/ServerTimingsHandler.js",
11501149
"front_end/models/trace/handlers/Threads.js",
11511150
"front_end/models/trace/handlers/UserInteractionsHandler.js",
11521151
"front_end/models/trace/handlers/UserTimingsHandler.js",
@@ -1866,7 +1865,6 @@ grd_files_debug_sources = [
18661865
"front_end/panels/timeline/ModificationsManager.js",
18671866
"front_end/panels/timeline/NetworkTrackAppender.js",
18681867
"front_end/panels/timeline/SaveFileFormatter.js",
1869-
"front_end/panels/timeline/ServerTimingsTrackAppender.js",
18701868
"front_end/panels/timeline/TargetForEvent.js",
18711869
"front_end/panels/timeline/ThirdPartyTreeView.js",
18721870
"front_end/panels/timeline/ThreadAppender.js",

front_end/core/host/UserMetrics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,6 @@ export enum DevtoolsExperiments {
979979
'timeline-enhanced-traces' = 90,
980980
'timeline-compiled-sources' = 91,
981981
'timeline-debug-mode' = 93,
982-
'timeline-server-timings' = 98,
983982
'timeline-experimental-insights' = 102,
984983
'timeline-dim-unrelated-events' = 103,
985984
'timeline-alternative-navigation' = 104,

front_end/core/root/Runtime.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ export const enum ExperimentName {
321321
TIMELINE_DEBUG_MODE = 'timeline-debug-mode',
322322
TIMELINE_ENHANCED_TRACES = 'timeline-enhanced-traces',
323323
TIMELINE_COMPILED_SOURCES = 'timeline-compiled-sources',
324-
TIMELINE_SERVER_TIMINGS = 'timeline-server-timings',
325324
TIMELINE_EXPERIMENTAL_INSIGHTS = 'timeline-experimental-insights',
326325
TIMELINE_DIM_UNRELATED_EVENTS = 'timeline-dim-unrelated-events',
327326
TIMELINE_ALTERNATIVE_NAVIGATION = 'timeline-alternative-navigation',

front_end/entrypoints/main/MainImpl.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,6 @@ export class MainImpl {
369369
'Performance panel: show postMessage dispatch and handling flows',
370370
);
371371

372-
Root.Runtime.experiments.register(
373-
Root.Runtime.ExperimentName.TIMELINE_SERVER_TIMINGS,
374-
'Performance panel: enable server timings in the timeline',
375-
);
376-
377372
Root.Runtime.experiments.register(
378373
Root.Runtime.ExperimentName.TIMELINE_EXPERIMENTAL_INSIGHTS,
379374
'Performance panel: enable experimental performance insights',

front_end/models/trace/handlers/BUILD.gn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ devtools_module("handlers") {
3636
"ScreenshotsHandler.ts",
3737
"ScriptsHandler.ts",
3838
"SelectorStatsHandler.ts",
39-
"ServerTimingsHandler.ts",
4039
"Threads.ts",
4140
"UserInteractionsHandler.ts",
4241
"UserTimingsHandler.ts",
@@ -97,7 +96,6 @@ ts_library("unittests") {
9796
"ScreenshotsHandler.test.ts",
9897
"ScriptsHandler.test.ts",
9998
"SelectorStatsHandler.test.ts",
100-
"ServerTimingsHandler.test.ts",
10199
"Threads.test.ts",
102100
"UserInteractionsHandler.test.ts",
103101
"UserTimingsHandler.test.ts",

front_end/models/trace/handlers/ModelHandlers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export * as Samples from './SamplesHandler.js';
2828
export * as Screenshots from './ScreenshotsHandler.js';
2929
export * as Scripts from './ScriptsHandler.js';
3030
export * as SelectorStats from './SelectorStatsHandler.js';
31-
export * as ServerTimings from './ServerTimingsHandler.js';
3231
export * as UserInteractions from './UserInteractionsHandler.js';
3332
export * as UserTimings from './UserTimingsHandler.js';
3433
export * as Warnings from './WarningsHandler.js';

front_end/models/trace/handlers/ServerTimingsHandler.test.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

front_end/models/trace/handlers/ServerTimingsHandler.ts

Lines changed: 0 additions & 122 deletions
This file was deleted.

front_end/models/trace/helpers/SyntheticEvents.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ export class SyntheticEventsManager {
5050
}
5151
}
5252

53-
static registerServerTiming(syntheticEvent: Omit<Types.Events.SyntheticServerTiming, '_tag'>):
54-
Types.Events.SyntheticServerTiming {
55-
// TODO(crbug.com/340811171): Implement
56-
return syntheticEvent as Types.Events.SyntheticServerTiming;
57-
}
58-
5953
private constructor(rawEvents: readonly Types.Events.Event[]) {
6054
this.#rawTraceEvents = rawEvents;
6155
}

front_end/models/trace/types/TraceEvents.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ export interface SyntheticNetworkRequest extends Complete, SyntheticBased<Phase.
402402
initiator?: Initiator,
403403
requestMethod?: string,
404404
timing?: ResourceReceiveResponseTimingData,
405-
syntheticServerTimings?: SyntheticServerTiming[],
406405
},
407406
};
408407
cat: 'loading';
@@ -1645,25 +1644,6 @@ export interface SyntheticProfileCall extends Event {
16451644
profileId: ProfileID;
16461645
}
16471646

1648-
/**
1649-
* A synthetic event created from the Server-Timing header of network
1650-
* request. In order to create these synthetic events, the corresponding
1651-
* metric (timing) in the header must contain a "start" param, which
1652-
* corresponds to the timestamp of the metric in the server. The
1653-
* ServerTimingsHandler implements a heuristic to estimate the offset
1654-
* between the client clock and the server clock so that the server
1655-
* timestamp can be translated to the tracing clock.
1656-
*/
1657-
export interface SyntheticServerTiming<T extends Phase = Phase.COMPLETE> extends SyntheticBased<T> {
1658-
rawSourceEvent: ResourceSendRequest;
1659-
cat: 'devtools.server-timing';
1660-
args: Args&{
1661-
data: ArgsData & {
1662-
desc?: string, origin: string,
1663-
},
1664-
};
1665-
}
1666-
16671647
/**
16681648
* A JS Sample reflects a single sample from the V8 CPU Profile
16691649
*/
@@ -2736,10 +2716,6 @@ export function isFunctionCall(event: Event): event is FunctionCall {
27362716
return event.name === Name.FUNCTION_CALL;
27372717
}
27382718

2739-
export function isSyntheticServerTiming(event: Event): event is SyntheticServerTiming {
2740-
return event.cat === 'devtools.server-timing';
2741-
}
2742-
27432719
export interface SchedulePostTaskCallback extends Instant {
27442720
name: Name.SCHEDULE_POST_TASK_CALLBACK;
27452721
args: Args&{

0 commit comments

Comments
 (0)