Skip to content

Commit

Permalink
Move common/constants and common/utils to xprof open source, and cons…
Browse files Browse the repository at this point in the history
…olidate data table 1P/3P

PiperOrigin-RevId: 713757127
  • Loading branch information
Profiler Team authored and copybara-github committed Jan 9, 2025
1 parent d11ffb8 commit 5ec1558
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/app/common/interfaces/data_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as memoryProfileProto from 'org_xprof/frontend/app/common/interfaces/me
import * as memoryViewerPreprocess from 'org_xprof/frontend/app/common/interfaces/memory_viewer_preprocess.jsonpb_decls';
import * as opProfileProto from 'org_xprof/frontend/app/common/interfaces/op_profile.jsonpb_decls';
import * as diagnosticsProto from 'org_xprof/frontend/app/common/interfaces/diagnostics';
import {RooflineModelData} from 'org_xprof/frontend/app/common/interfaces/roofline_model';

/** Constant of empty data in SimpleDataTable typing */
export const DEFAULT_SIMPLE_DATA_TABLE = {
Expand Down Expand Up @@ -423,3 +424,13 @@ export declare interface InferenceProfileData extends SimpleDataTable {
/** All Inference Stats page data table type. */
export type InferenceProfileTable =
|InferenceProfileMetadata|InferenceProfileData;

/* tslint:enable */

/**
* The internal tool's response data type
* yet to be open sourced
*/
export type XprofDataTable =
|DataTable|InferenceProfileTable[]
|RooflineModelData[];
1 change: 1 addition & 0 deletions frontend/app/common/utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ts_library(
],
deps = [
"@npm//@ngrx/store",
"@org_xprof//frontend/app/common/constants",
"@org_xprof//frontend/app/common/interfaces",
"@org_xprof//frontend/app/common/interfaces:chart",
"@org_xprof//frontend/app/common/interfaces:op_profile_proto_defs",
Expand Down

0 comments on commit 5ec1558

Please sign in to comment.