From ef8446c25514c0b26c03ff4447b1c285aa70ee14 Mon Sep 17 00:00:00 2001 From: alisman Date: Tue, 15 Jun 2021 17:37:04 -0400 Subject: [PATCH] Add timing to oncoprint render --- src/shared/components/oncoprint/Oncoprint.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/components/oncoprint/Oncoprint.tsx b/src/shared/components/oncoprint/Oncoprint.tsx index 60c539292bf..27a998ee23b 100644 --- a/src/shared/components/oncoprint/Oncoprint.tsx +++ b/src/shared/components/oncoprint/Oncoprint.tsx @@ -296,6 +296,7 @@ export default class Oncoprint extends React.Component { } private refreshOncoprint(props: IOncoprintProps) { + const now = performance.now(); if (!this.oncoprint) { // instantiate new one this.oncoprint = new OncoprintJS( @@ -324,6 +325,7 @@ export default class Oncoprint extends React.Component { ); this.lastTransitionProps = _.clone(props); } + console.log('oncoprint render time: ', performance.now() - now); } componentWillReceiveProps(nextProps: IOncoprintProps) {