@@ -10,24 +10,18 @@ import {
1010 Form ,
1111 Nav ,
1212 Navbar ,
13- Row ,
14- Tab ,
15- Tabs
13+ Row
1614} from 'react-bootstrap' ;
1715import { MLIRViewer } from "@lingodb/common/MLIRViewer" ;
1816import { RelationalPlanViewer } from "@lingodb/common/RelationalPlanViewer" ;
19- import { TraceViewer } from "@lingodb/common/TraceViewer" ;
2017import {
2118 analyzeLayers ,
22- collectChildren , collectChildrenWithData ,
19+ collectChildrenWithData ,
2320 getBaseReference ,
2421 goDown ,
2522 goDownDirect ,
26- goUp , goUpDirect , opSameExceptLoc , opSameExceptLocAndChildren
23+ goUp , goUpDirect , opSameExceptLocAndChildren
2724} from "@lingodb/common/MLIRLayerAnalysis" ;
28- import { SubOpPlanViewer } from "@lingodb/common/SubOpPlanViewer" ;
29- import { PerfSymbolTable } from "./PerfSymbolTable" ;
30- import { PerfAsmViewer } from "./PerfAsmViewer" ;
3125import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter' ;
3226import { dracula } from 'react-syntax-highlighter/dist/esm/styles/prism' ;
3327export const DebuggingView = ( { data, onClose} ) => {
@@ -166,7 +160,7 @@ export const DebuggingView = ({data, onClose}) => {
166160 }
167161 } )
168162 }
169- } , [ selectedOp , selectedLayer , leftDiffIndex , rightDiffIndex ] )
163+ } , [ data , layerInfo , selectedOp , selectedLayer , leftDiffIndex , rightDiffIndex ] )
170164
171165 useEffect ( ( ) => {
172166 if ( selectedOp && selectedLayer ) {
@@ -182,7 +176,7 @@ export const DebuggingView = ({data, onClose}) => {
182176 }
183177 } )
184178 }
185- } , [ selectedOp , selectedLayer ] )
179+ } , [ data , layerInfo , relalgMLIRData , selectedOp , selectedLayer ] )
186180 const selectError = ( index ) => {
187181 console . log ( "select" , index )
188182 let file = data . errors [ index ] [ 0 ] [ 0 ]
@@ -243,8 +237,7 @@ export const DebuggingView = ({data, onClose}) => {
243237 }
244238 </ DropdownButton >
245239 < DropdownButton as = { ButtonGroup } id = "dropdown-basic-button" title = { "File" } onSelect = { selectFile } >
246- { data . layers . map ( ( l , index ) => {
247- if ( l . index > 0 )
240+ { data . layers . filter ( ( l ) => l . index > 0 ) . map ( ( l , index ) => {
248241 return < Dropdown . Item eventKey = { l . index } > { l . passInfo . file } </ Dropdown . Item >
249242 } )
250243 }
0 commit comments