提交 24128a8f authored 作者: James Bergstra's avatar James Bergstra

added some code comments

上级 00204a22
......@@ -627,6 +627,12 @@ class Function(object):
value = value.storage[0]
self[i] = value
#
# NOTE: This logic needs to be replicated in
# scan.
# grep for 'PROFILE_CODE'
#
dt_call=time.time()-t0
if hasattr(self.maker.mode,'fct_call_time'):
self.maker.mode.fct_call_time[self] += dt_call
......
......@@ -602,6 +602,9 @@ class Scan(Op):
t_call = time.time() - t0_call
# NOTE: make this match what's in function_module.Function
# and this little string helps us to find this spot:
# "PROFILE_CODE"
if hasattr(self.fn.maker.mode,'fct_call_time'):
self.fn.maker.mode.fct_call_time[self.fn] += t_fn
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论