the really meaning of --native #535
-
if i use python to call c api to allocate too much memory. what is the true meaning of --native? 1, only i could see python callstack with --native. 2,i could see python stack but only i could see c/c++ callstack with --native? if in second case, in most of case, even i use python to call c api to allocate memory, without --native is enough for me to debug. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Please, for questions like this use the discussions forum: https://github.com/bloomberg/memray/discussions |
Beta Was this translation helpful? Give feedback.
-
@zdyj3170101136 can you provide an example repository or code snippet of what you are trying to do? |
Beta Was this translation helpful? Give feedback.
Without
--native
allocations performed by native code are counted as though they were made by the most recent ancestor Python frame in the stack.With
--native
allocations performed by native code are shown as being made by a native frame in a hybrid stack that includes both Python and native frames intermingled.