Skip to content
Open
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
9 changes: 6 additions & 3 deletions benchmarking/platforms/ios/ios_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,17 @@ def runBenchmark(self, cmd, *args, **kwargs):
if platform_args.get("profiling_args", {}).get("enabled", False):
# attempt to run with profiling, else fallback to standard run
try:
profiling_types = platform_args["profiling_args"]["types"]
options = platform_args["profiling_args"]["options"]
args = " ".join(["--" + x + " " + arguments[x] for x in arguments])
xctrace = getProfilerByUsage(
"ios",
None,
platform=self,
model_name=platform_args.get("model_name", None),
args=args,
types=profiling_types,
options=options,
)
if xctrace:
f = xctrace.start()
Expand All @@ -137,9 +141,8 @@ def runBenchmark(self, cmd, *args, **kwargs):
)
return output, meta
except Exception:
getLogger().critical(
f"An error occurred when running XCTrace profiler on device {self.platform} {self.platform_hash}.",
exc_info=True,
getLogger().exception(
f"An error occurred when running XCTrace profiler on device {self.platform} {self.platform_hash}."
)
# meta is used to store any data about the benchmark run
# that is not the output of the command
Expand Down