<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<font style="font-size:10pt" color="#366092" face="Tahoma" size="2">Hi All,<br><br>I have used the Python's C-API to call some Python code in my c code and now I want to know how much time does my Python part of the program takes. I came across the PyEval_SetProfile API and am not sure how to use it. Do I need to write my own profiling function? <br><br>Any pointer to examples or how to's will be much appreciated.<br><br>Thanks,<br>Salman<br id="ecxFontBreak"></font>                                     </div></body>
</html>