Skip to content

Commit

Permalink
fix profile
Browse files Browse the repository at this point in the history
Signed-off-by: weiwee <wbwmat@gmail.com>
  • Loading branch information
sagewe committed Aug 11, 2023
1 parent 202c75e commit afb7446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/fate/arch/computing/_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, function_name: str, function_stack_list):
self._start = time.time()

function_stack = "\n".join(function_stack_list)
self._hash = hashlib.blake2b(function_stack.encode("utf-8"), digest_size=5).hexdigest()
self._hash = hashlib.blake2b(f"{function_name}#{function_stack}".encode("utf-8"), digest_size=5).hexdigest()

if self._hash not in self._STATS:
self._STATS[self._hash] = _ComputingTimerItem(function_name, function_stack)
Expand Down

0 comments on commit afb7446

Please sign in to comment.