@@ -44,16 +44,12 @@ JL_DLLEXPORT uint32_t jl_timing_print_limit = 10;
4444const char * jl_timing_names [(int )JL_TIMING_LAST ] =
4545 {
4646#define X (name ) #name ,
47- JL_TIMING_OWNERS
47+ JL_TIMING_SUBSYSTEMS
4848#undef X
4949 };
5050
5151JL_DLLEXPORT jl_timing_counter_t jl_timing_counters [JL_TIMING_COUNTER_LAST ];
5252
53- #ifdef USE_ITTAPI
54- JL_DLLEXPORT __itt_event jl_timing_ittapi_events [(int )JL_TIMING_EVENT_LAST ];
55- #endif
56-
5753void jl_print_timings (void )
5854{
5955#ifdef USE_TIMING_COUNTS
@@ -91,9 +87,6 @@ void jl_init_timing(void)
9187
9288 int i __attribute__((unused )) = 0 ;
9389#ifdef USE_ITTAPI
94- #define X (name ) jl_timing_ittapi_events[i++] = __itt_event_create(#name, strlen(#name));
95- JL_TIMING_EVENTS
96- #undef X
9790 i = 0 ;
9891#define X (name ) jl_timing_counters[i++].ittapi_counter = __itt_counter_create(#name, "julia.runtime");
9992 JL_TIMING_COUNTERS
@@ -187,7 +180,7 @@ JL_DLLEXPORT void jl_timing_show(jl_value_t *v, jl_timing_block_t *cur_block)
187180 if (buf .size == buf .maxsize )
188181 memset (& buf .buf [IOS_INLSIZE - 3 ], '.' , 3 );
189182
190- TracyCZoneText (* ( cur_block -> tracy_ctx ) , buf .buf , buf .size );
183+ TracyCZoneText (cur_block -> tracy_ctx , buf .buf , buf .size );
191184#endif
192185}
193186
@@ -197,7 +190,7 @@ JL_DLLEXPORT void jl_timing_show_module(jl_module_t *m, jl_timing_block_t *cur_b
197190 jl_module_t * root = jl_module_root (m );
198191 if (root == m || root == jl_main_module ) {
199192 const char * module_name = jl_symbol_name (m -> name );
200- TracyCZoneText (* ( cur_block -> tracy_ctx ) , module_name , strlen (module_name ));
193+ TracyCZoneText (cur_block -> tracy_ctx , module_name , strlen (module_name ));
201194 } else {
202195 jl_timing_printf (cur_block , "%s.%s" , jl_symbol_name (root -> name ), jl_symbol_name (m -> name ));
203196 }
@@ -208,7 +201,7 @@ JL_DLLEXPORT void jl_timing_show_filename(const char *path, jl_timing_block_t *c
208201{
209202#ifdef USE_TRACY
210203 const char * filename = gnu_basename (path );
211- TracyCZoneText (* ( cur_block -> tracy_ctx ) , filename , strlen (filename ));
204+ TracyCZoneText (cur_block -> tracy_ctx , filename , strlen (filename ));
212205#endif
213206}
214207
@@ -243,7 +236,7 @@ JL_DLLEXPORT void jl_timing_show_func_sig(jl_value_t *v, jl_timing_block_t *cur_
243236 if (buf .size == buf .maxsize )
244237 memset (& buf .buf [IOS_INLSIZE - 3 ], '.' , 3 );
245238
246- TracyCZoneText (* ( cur_block -> tracy_ctx ) , buf .buf , buf .size );
239+ TracyCZoneText (cur_block -> tracy_ctx , buf .buf , buf .size );
247240#endif
248241}
249242
@@ -261,15 +254,15 @@ JL_DLLEXPORT void jl_timing_printf(jl_timing_block_t *cur_block, const char *for
261254 if (buf .size == buf .maxsize )
262255 memset (& buf .buf [IOS_INLSIZE - 3 ], '.' , 3 );
263256
264- TracyCZoneText (* ( cur_block -> tracy_ctx ) , buf .buf , buf .size );
257+ TracyCZoneText (cur_block -> tracy_ctx , buf .buf , buf .size );
265258#endif
266259 va_end (args );
267260}
268261
269262JL_DLLEXPORT void jl_timing_puts (jl_timing_block_t * cur_block , const char * str )
270263{
271264#ifdef USE_TRACY
272- TracyCZoneText (* ( cur_block -> tracy_ctx ) , str , strlen (str ));
265+ TracyCZoneText (cur_block -> tracy_ctx , str , strlen (str ));
273266#endif
274267}
275268
0 commit comments