MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / wrapper

Method wrapper

python/graphvite/util.py:159–165  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

157 """
158 @wraps(function)
159 def wrapper(*args, **kwargs):
160 name = self.get_name(function, args[0])
161 start = time()
162 result = function(*args, **kwargs)
163 end = time()
164 logger.info("[time] %s: %g s" % (name, end - start))
165 return result
166
167 return wrapper
168

Callers

nothing calls this directly

Calls 2

get_nameMethod · 0.95
infoMethod · 0.45

Tested by

no test coverage detected