12fdf7ea605d3716d6c9127e22a63bcc345d55be,debug_toolbar/panels/cache.py,CacheStatTracker,get,#CacheStatTracker#,32
Before Change
return (info[0], info[1], info[2], info[3])
def get(self, *args, **kwargs):
t = time.time()
value = self.cache.get(*args, **kwargs)
this_time = time.time() - t
self.total_time += this_time * 1000
if value is None:
self.misses += 1
else:
self.hits += 1
self.gets += 1
self.calls.append((this_time, "get", args, kwargs, self._get_func_info()))
return value
def set(self, *args, **kwargs):
t = time.time()
After Change
@send_signal
def get(self, *args, **kwargs):
return self.cache.get(*args, **kwargs)
@send_signal
def set(self, *args, **kwargs):
return self.cache.set(*args, **kwargs)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 20
Instances
Project Name: jazzband/django-debug-toolbar
Commit Name: 12fdf7ea605d3716d6c9127e22a63bcc345d55be
Time: 2012-04-06
Author: jannis@leidel.info
File Name: debug_toolbar/panels/cache.py
Class Name: CacheStatTracker
Method Name: get
Project Name: jazzband/django-debug-toolbar
Commit Name: 12fdf7ea605d3716d6c9127e22a63bcc345d55be
Time: 2012-04-06
Author: jannis@leidel.info
File Name: debug_toolbar/panels/cache.py
Class Name: CacheStatTracker
Method Name: set
Project Name: jazzband/django-debug-toolbar
Commit Name: 12fdf7ea605d3716d6c9127e22a63bcc345d55be
Time: 2012-04-06
Author: jannis@leidel.info
File Name: debug_toolbar/panels/cache.py
Class Name: CacheStatTracker
Method Name: get
Project Name: jazzband/django-debug-toolbar
Commit Name: 12fdf7ea605d3716d6c9127e22a63bcc345d55be
Time: 2012-04-06
Author: jannis@leidel.info
File Name: debug_toolbar/panels/cache.py
Class Name: CacheStatTracker
Method Name: delete
Project Name: jazzband/django-debug-toolbar
Commit Name: 12fdf7ea605d3716d6c9127e22a63bcc345d55be
Time: 2012-04-06
Author: jannis@leidel.info
File Name: debug_toolbar/panels/cache.py
Class Name: CacheStatTracker
Method Name: get_many