Telemetry Table performance marks (#5107)

Co-authored-by: unlikelyzero <jchill2@gmail.com>
Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com>
This commit is contained in:
John Hill
2022-04-22 17:49:50 -07:00
committed by GitHub
parent 5236f1c796
commit db5cb2517f
3 changed files with 7 additions and 1 deletions

View File

@ -225,8 +225,9 @@ define(
sortBy(sortOptions) {
if (arguments.length > 0) {
this.sortOptions = sortOptions;
performance.mark('table:row:sort:start');
this.rows = _.orderBy(this.rows, (row) => row.getParsedValue(sortOptions.key), sortOptions.direction);
performance.mark('table:row:sort:stop');
this.emit('sort');
}