perfetto-ui: Add permalinks
Change-Id: I6feded24f936325d51020b0ecdbc62993c3b2cf3
diff --git a/ui/src/common/state.ts b/ui/src/common/state.ts
index 05323c1..930ad08 100644
--- a/ui/src/common/state.ts
+++ b/ui/src/common/state.ts
@@ -25,7 +25,7 @@
height: number;
kind: string;
name: string;
- // TODO(hjd): This needs to be nested into track kind spesific state.
+ // TODO(hjd): This needs to be nested into track kind specific state.
cpu: number;
}
@@ -41,6 +41,8 @@
query: string;
}
+export interface PermalinkConfig { state: State; }
+
export interface State {
route: string|null;
nextId: number;
@@ -52,6 +54,7 @@
tracks: ObjectById<TrackState>;
displayedTrackIds: string[];
queries: ObjectById<QueryConfig>;
+ permalink: null|PermalinkConfig;
}
export function createEmptyState(): State {
@@ -62,5 +65,6 @@
displayedTrackIds: [],
engines: {},
queries: {},
+ permalink: null,
};
}