Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions clams/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,13 @@ def annotate(self, mmif: Union[str, dict, Mmif], **runtime_params: List[str]) ->
runtime_recs['cuda'].append(self._cuda_device_name_concat(name, mem))
for annotated_view in annotated.views:
if annotated_view.metadata.app == self.metadata.identifier:
profiling_data = {}
if runningTime:
annotated_view.metadata.set_additional_property('appRunningTime', str(td))
profiling_data['runningTime'] = str(td)
if len(runtime_recs) > 0:
annotated_view.metadata.set_additional_property('appRunningHardware', runtime_recs)
profiling_data['hardware'] = runtime_recs
if profiling_data:
annotated_view.metadata.set_additional_property('appProfiling', profiling_data)

return annotated.serialize(pretty=pretty, sanitize=True)

Expand Down
Loading