Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Fix python3 support, fix mixed callstacks in release mode #7

Merged
merged 15 commits into from Dec 20, 2018

Conversation

vnlitvinov
Copy link
Contributor

Fix Python 3 support.
Tested with Python 3.5 on Ubuntu 16.04 and Python 3.6 on Windows 10.

Fix mixed callstacks in release mode - this is done by stopping compiler from doing tail call optimization in PyEval_EvalFrameEx probe so that probe is always present in callstack.

Also drop legacy Makefiles - all is built with CMake now.
And fixed a few warnings.

PyObject* m = Py_InitModule3("pysamprof", module_methods, module_docstring);
if (m == NULL) return;
#endif
if (m == NULL) INIT_ERROR;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add return

PYSAMPROF_LOG(PL_INFO, "Got code object %p: '%s'", code,
PyString_AsString(code->co_name));
PYSAMPROF_LOG(PL_INFO, "Got code object %p: '%s'", code,
GET_PYSTR_AS_PCHAR(code->co_name));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix tabs

* Added missing break and return
* Replaced tabs with spaces for better alignment
@vnlitvinov vnlitvinov merged commit 078af6a into master Dec 20, 2018
@vnlitvinov vnlitvinov deleted the fix-python3-support branch December 20, 2018 15:09
Sign up for free to 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.

None yet

2 participants