- 
                Notifications
    You must be signed in to change notification settings 
- Fork 62
VTune integration #814
base: master
Are you sure you want to change the base?
VTune integration #814
Conversation
| Native part is not included? | 
        
          
                vtune_integration.py
              
                Outdated
          
        
      | ll.add_symbol('__itt_task_begin_new', itt.__itt_task_begin) | ||
| ll.add_symbol('__itt_task_end_new', itt.__itt_task_end) | ||
|  | ||
| def vtune_profiling_boxing(name_handle): | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
        
          
                vtune_integration.py
              
                Outdated
          
        
      | @@ -0,0 +1,40 @@ | |||
| import ctypes | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename file somehow. Probably, simlpy vtune.py
| handle = vt.ctypes_string_handle_create(b"Head\0") | ||
|  | ||
| functype_task_begin = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p) | ||
| ctypes_task_begin = functype_task_begin(itt.__itt_task_begin) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it should be done in vtune.py, not here. And here just import these functions
|  | ||
|  | ||
| @sdc_overload_method(SeriesType, 'head') | ||
| @vtune_profiling_overload(name_handle="Series_head") | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be part of sdc_overload_method decorator. We can extract type name and method name from where.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You actually could call this decorator inside sdc_overload_method
| Great progress actually! | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very old PR. It is better to close it.
No description provided.