Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Conversation

@1e-to
Copy link
Contributor

No description provided.

@Hardcode84
Copy link
Contributor

Native part is not included?

ll.add_symbol('__itt_task_begin_new', itt.__itt_task_begin)
ll.add_symbol('__itt_task_end_new', itt.__itt_task_end)

defvtune_profiling_boxing(name_handle):
Copy link
Collaborator

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?

@@ -0,0 +1,40 @@
importctypes
Copy link
Collaborator

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)
Copy link
Collaborator

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

@pep8speaks
Copy link

pep8speaks commented Apr 22, 2020

Hello @1e-to! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-04-22 16:23:37 UTC



@sdc_overload_method(SeriesType, 'head')
@vtune_profiling_overload(name_handle="Series_head")
Copy link
Collaborator

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.

Copy link
Collaborator

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

@AlexanderKalistratov
Copy link
Collaborator

Great progress actually!

@kozlov-alexeykozlov-alexey added this to the gold milestone Feb 24, 2021
Copy link
Contributor

@PokhodenkoSAPokhodenkoSA left a 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.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@1e-to@Hardcode84@pep8speaks@AlexanderKalistratov@PokhodenkoSA@kozlov-alexey