Intel® Graphics Performance Analyzers (Intel® GPA)
Improve your game's performance by quickly specifying problem areas

Python example code?

ktB
Novice
802 Views

Is there example code using the Python API?  I'm trying to convert the C++ sample code to python but am having trouble. 

For example, when trying to convert the ApiLog example, the code just stops at the scan_for_ranges() call with "Process finished with exit code -1073741819 (0xC0000005)".

 

 

streamObj = GPA.open_stream('... my stream folder ...')
apiLog = GPA.ApiLog(streamObj)
rangeCount = apiLog.scan_for_ranges()
frameIndex = int(rangeCount * 0.5)
print(frameIndex)

 

 

The C++ example runs fine so I don't think the problem is the stream folder.  Using Python 3.7.

I'm sure I'll run into other issues so some working python examples would be helpful.

0 Kudos
1 Reply
Pamela_H_Intel
Moderator
749 Views

ktB,

It's great to know we have Python customers!! Thanks for the suggestion. We will have samples in the future.

We don't have any samples yet because we do not yet support the full Python API. This may also be what is causing your issue.

Pamela

0 Kudos
Reply