<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<small>Hi,<br>
<br>
I am trying to instrument method: run() for memory profiling(I am
using memory_profiler & guppy tools for this). All I need to
do is decorate the run() with "profile" decorator and mention <font
color="#3333ff"><big><b>start</b></big></font> and <font
color="#cc0000"><big><b>end</b></big></font> of memory
profiling.<br>
<br>
@profile<br>
def run():<br>
d = {}<br>
l = []<br>
hp = hpy()<br>
before = hp.heap() => <font color="#3333ff"><big><b>start</b></big></font>
memory profiling from here<br>
<br>
d["k1"] = 'val1'<br>
d["k2"] = 10<br>
count = 0<br>
while (count < 9):<br>
l.append(count)<br>
print 'The count is:', count<br>
count = count + 1<br>
print "Good bye!"<br>
after = hp.heap() </small><small> => <font
color="#cc0000"><big><b>end</b></big></font> memory profiling
here</small><br>
<small> leftover = after - before<br>
<br>
print leftover<br>
del hp<br>
<br>
<br>
So far works fine. But moment I introduce @inlineCallbacks before
@profile(see below), I don't see memory getting profiled. Am I
doing something wrong here?<br>
</small><small>@inlinecallbacks<br>
@profile<br>
def run():<br>
....<br>
<br>
Regards<br>
Vikas<br>
<br>
</small><small><br>
</small>
</body>
</html>