Skip to content

Commit

Permalink
Merge pull request #3804 from alisman/timeOnco
Browse files Browse the repository at this point in the history
Add timing to oncoprint render
  • Loading branch information
alisman committed Jun 15, 2021
2 parents 8f2a649 + ef8446c commit 4ef144e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/components/oncoprint/Oncoprint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export default class Oncoprint extends React.Component<IOncoprintProps, {}> {
}

private refreshOncoprint(props: IOncoprintProps) {
const now = performance.now();
if (!this.oncoprint) {
// instantiate new one
this.oncoprint = new OncoprintJS(
Expand Down Expand Up @@ -324,6 +325,7 @@ export default class Oncoprint extends React.Component<IOncoprintProps, {}> {
);
this.lastTransitionProps = _.clone(props);
}
console.log('oncoprint render time: ', performance.now() - now);
}

componentWillReceiveProps(nextProps: IOncoprintProps) {
Expand Down

0 comments on commit 4ef144e

Please sign in to comment.