@@ -30,12 +30,8 @@ import {NavigationInstruction, RouteConfig, Router} from "aurelia-router";
3030import * as echarts from "echarts" ;
3131import { EChartsOption } from "echarts" ;
3232import { data } from "../../services/report-model" ;
33- import {
34- IntlDateFormatValueConverter
35- } from "t-systems-aurelia-components/src/value-converters/intl-date-format-value-converter" ;
36- import {
37- DurationFormatValueConverter
38- } from "t-systems-aurelia-components/src/value-converters/duration-format-value-converter" ;
33+ import { IntlDateFormatValueConverter } from "t-systems-aurelia-components/src/value-converters/intl-date-format-value-converter" ;
34+ import { DurationFormatValueConverter } from "t-systems-aurelia-components/src/value-converters/duration-format-value-converter" ;
3935import { ClassName , ClassNameValueConverter } from "../../value-converters/class-name-value-converter" ;
4036import { MdcSelect } from "@aurelia-mdc-web/select" ;
4137import MethodContext = data . MethodContext ;
@@ -288,12 +284,16 @@ export class Threads extends AbstractViewModel {
288284 startTimes . push ( methodContext . contextValues . startTime ) ;
289285 } ) ;
290286
287+
291288 const chartStartTime = Math . min . apply ( Math , startTimes ) - this . _gapFromBorderToStart ;
292289 const statusConverter = this . _statusConverter ;
290+ const statisticsGenerator = this . _statisticsGenerator ;
291+ console . log ( "thread" , threadCategories ) ;
293292
294- threadCategories . forEach ( function ( methodContexts , threadName ) {
295- methodContexts . forEach ( ( context : MethodContext ) => {
293+ threadCategories . forEach ( function ( methodContexts : MethodContext [ ] , threadName : string ) {
294+ methodContexts . forEach ( async ( context : MethodContext ) => {
296295
296+ const methodDetails = await statisticsGenerator . getMethodDetails ( context . contextValues . id ) ;
297297 const itemColor = statusConverter . getColorForStatus ( context . resultStatus ) ;
298298 const duration = context . contextValues . endTime - context . contextValues . startTime ;
299299 const classId = executionStatistics . classStatistics . find ( classStat => {
@@ -302,9 +302,11 @@ export class Threads extends AbstractViewModel {
302302 . filter ( ( value , index , self ) => self . indexOf ( value ) === index ) ;
303303 return classContextIds . includes ( context . classContextId ) ;
304304 } ) . classIdentifier ;
305+ console . log ( "details" , methodDetails . identifier ) ;
306+
305307
306308 data . push ( {
307- name : context . contextValues . name ,
309+ name : methodDetails . identifier ,
308310 value : [
309311 threadName ,
310312 context . contextValues . startTime ,
0 commit comments