Skip to content

Commit

Permalink
ui: Fix typo in registerAreaSelectionAggreagtor
Browse files Browse the repository at this point in the history
Change-Id: I4c2d3969eae311e35cb29428d3896370a9918ee4
  • Loading branch information
stevegolton committed Nov 25, 2024
1 parent 1cc3afd commit 529dc73
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ui/src/core/selection_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class SelectionManagerImpl implements SelectionManager {
);
}

registerAreaSelectionAggreagtor(aggr: AreaSelectionAggregator): void {
registerAreaSelectionAggregator(aggr: AreaSelectionAggregator): void {
this._aggregationManager.registerAggregator(aggr);
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/plugins/dev.perfetto.AsyncSlices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class implements PerfettoPlugin {
},
});

ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new SliceSelectionAggregator(),
);

Expand Down
2 changes: 1 addition & 1 deletion ui/src/plugins/dev.perfetto.Counter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class implements PerfettoPlugin {
await this.addThreadCounterTracks(ctx);
await this.addProcessCounterTracks(ctx);

ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new CounterSelectionAggregator(),
);
}
Expand Down
4 changes: 2 additions & 2 deletions ui/src/plugins/dev.perfetto.CpuSlices/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export default class implements PerfettoPlugin {
static readonly dependencies = [ThreadPlugin];

async onTraceLoad(ctx: Trace): Promise<void> {
ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new CpuSliceSelectionAggregator(),
);
ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new CpuSliceByProcessSelectionAggregator(),
);

Expand Down
2 changes: 1 addition & 1 deletion ui/src/plugins/dev.perfetto.Frames/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class implements PerfettoPlugin {
async onTraceLoad(ctx: Trace): Promise<void> {
this.addExpectedFrames(ctx);
this.addActualFrames(ctx);
ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new FrameSelectionAggregator(),
);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/plugins/dev.perfetto.ThreadState/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class implements PerfettoPlugin {
async onTraceLoad(ctx: Trace): Promise<void> {
const {engine} = ctx;

ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new ThreadStateSelectionAggregator(),
);

Expand Down
8 changes: 4 additions & 4 deletions ui/src/plugins/org.kernel.Wattson/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ export default class implements PerfettoPlugin {
// Register selection aggregators.
// NOTE: the registration order matters because the laste two aggregators
// depend on views created by the first two.
ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new WattsonEstimateSelectionAggregator(),
);
ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new WattsonThreadSelectionAggregator(),
);
ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new WattsonProcessSelectionAggregator(),
);
ctx.selection.registerAreaSelectionAggreagtor(
ctx.selection.registerAreaSelectionAggregator(
new WattsonPackageSelectionAggregator(),
);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/public/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface SelectionManager {
selectArea(args: Area, opts?: SelectionOpts): void;

scrollToCurrentSelection(): void;
registerAreaSelectionAggreagtor(aggr: AreaSelectionAggregator): void;
registerAreaSelectionAggregator(aggr: AreaSelectionAggregator): void;

/**
* Register a new SQL selection resolver.
Expand Down

0 comments on commit 529dc73

Please sign in to comment.