@@ -363,33 +363,7 @@ <h1>Netty Loom Timeline Viewer</h1>
363363 const VT_RUN_COLORS = {
364364 poller : '#e11d48' ,
365365 eventLoop : '#2563eb' ,
366- immediate : '#f59e0b' ,
367366 } ;
368- const VT_RUN_COMBO = mixColors ( VT_RUN_COLORS . poller , VT_RUN_COLORS . immediate ) ;
369-
370- function mixColors ( hexA , hexB ) {
371- const a = hexToRgb ( hexA ) ;
372- const b = hexToRgb ( hexB ) ;
373- const mix = {
374- r : Math . round ( ( a . r + b . r ) / 2 ) ,
375- g : Math . round ( ( a . g + b . g ) / 2 ) ,
376- b : Math . round ( ( a . b + b . b ) / 2 ) ,
377- } ;
378- return `rgb(${ mix . r } , ${ mix . g } , ${ mix . b } )` ;
379- }
380-
381- function hexToRgb ( hex ) {
382- const clean = hex . replace ( '#' , '' ) ;
383- const value = clean . length === 3
384- ? clean . split ( '' ) . map ( c => c + c ) . join ( '' )
385- : clean ;
386- const intVal = parseInt ( value , 16 ) ;
387- return {
388- r : ( intVal >> 16 ) & 255 ,
389- g : ( intVal >> 8 ) & 255 ,
390- b : intVal & 255 ,
391- } ;
392- }
393367
394368 function carrierColor ( tid ) {
395369 const hue = ( tid * 29 ) % 360 ;
@@ -461,7 +435,6 @@ <h1>Netty Loom Timeline Viewer</h1>
461435 thread . v . push ( obj . v || 0 ) ;
462436 thread . p . push ( obj . p ?? null ) ;
463437 thread . el . push ( obj . el ?? null ) ;
464- thread . im . push ( obj . im ?? null ) ;
465438 thread . b . push ( obj . b ?? null ) ;
466439 thread . te . push ( obj . te ?? null ) ;
467440 thread . q0 . push ( obj . q0 ?? null ) ;
@@ -487,7 +460,7 @@ <h1>Netty Loom Timeline Viewer</h1>
487460 function getThread ( tid ) {
488461 let thread = state . threads . get ( tid ) ;
489462 if ( ! thread ) {
490- thread = { tid, name : `tid-${ tid } ` , s : [ ] , d : [ ] , n : [ ] , v : [ ] , p : [ ] , el : [ ] , im : [ ] , b : [ ] , te : [ ] , q0 : [ ] , q1 : [ ] , io : [ ] , th : [ ] , st : [ ] } ;
463+ thread = { tid, name : `tid-${ tid } ` , s : [ ] , d : [ ] , n : [ ] , v : [ ] , p : [ ] , el : [ ] , b : [ ] , te : [ ] , q0 : [ ] , q1 : [ ] , io : [ ] , th : [ ] , st : [ ] } ;
491464 state . threads . set ( tid , thread ) ;
492465 }
493466 return thread ;
@@ -508,7 +481,6 @@ <h1>Netty Loom Timeline Viewer</h1>
508481 thread . v = order . map ( i => thread . v [ i ] ) ;
509482 thread . p = order . map ( i => thread . p [ i ] ) ;
510483 thread . el = order . map ( i => thread . el [ i ] ) ;
511- thread . im = order . map ( i => thread . im [ i ] ) ;
512484 thread . b = order . map ( i => thread . b [ i ] ) ;
513485 thread . te = order . map ( i => thread . te [ i ] ) ;
514486 thread . q0 = order . map ( i => thread . q0 [ i ] ) ;
@@ -743,18 +715,13 @@ <h1>Netty Loom Timeline Viewer</h1>
743715 clampedX2 = tmp ;
744716 }
745717 let color = eventColor ( n [ i ] ) ;
746- if ( state . events [ n [ i ] ] === VT_RUN_EVENT_NAME || state . events [ n [ i ] ] === VT_SUBMIT_EVENT_NAME ) {
718+ if ( state . events [ n [ i ] ] === VT_RUN_EVENT_NAME || state . events [ n [ i ] ] === VT_SUBMIT_EVENT_NAME ) {
747719 const isPoller = thread . p [ i ] === 1 || thread . p [ i ] === true ;
748720 const isEventLoop = thread . el [ i ] === 1 || thread . el [ i ] === true ;
749- const isImmediate = thread . im [ i ] === 1 || thread . im [ i ] === true ;
750721 if ( isEventLoop ) {
751722 color = VT_RUN_COLORS . eventLoop ;
752- } else if ( isPoller && isImmediate ) {
753- color = VT_RUN_COMBO ;
754723 } else if ( isPoller ) {
755724 color = VT_RUN_COLORS . poller ;
756- } else if ( isImmediate ) {
757- color = VT_RUN_COLORS . immediate ;
758725 }
759726 }
760727 ctx . fillStyle = color ;
@@ -931,7 +898,6 @@ <h1>Netty Loom Timeline Viewer</h1>
931898 const vtid = thread . v [ eventIdx ] ;
932899 const isPoller = thread . p [ eventIdx ] ;
933900 const isEventLoop = thread . el [ eventIdx ] ;
934- const isImmediate = thread . im [ eventIdx ] ;
935901 const canBlock = thread . b [ eventIdx ] ;
936902 const tasksExecuted = thread . te [ eventIdx ] ;
937903 const queueDepthBefore = thread . q0 [ eventIdx ] ;
@@ -956,9 +922,6 @@ <h1>Netty Loom Timeline Viewer</h1>
956922 if ( isEventLoop != null ) {
957923 tooltipText += `\nIsEventLoop: ${ isEventLoop ? 'true' : 'false' } ` ;
958924 }
959- if ( isImmediate != null ) {
960- tooltipText += `\nImmediate: ${ isImmediate ? 'true' : 'false' } ` ;
961- }
962925 if ( canBlock != null ) {
963926 tooltipText += `\nCanBlock: ${ canBlock ? 'true' : 'false' } ` ;
964927 }
0 commit comments