Skip to content

Commit a9c1150

Browse files
committed
ContentView updated
1 parent 11cc05f commit a9c1150

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

CoreMLProfiler.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
"@executable_path/../Frameworks",
321321
);
322322
MACOSX_DEPLOYMENT_TARGET = 14.4;
323-
MARKETING_VERSION = 0.1;
323+
MARKETING_VERSION = 0.2;
324324
PRODUCT_BUNDLE_IDENTIFIER = com.fguzman82.CoreMLProfiler;
325325
PRODUCT_NAME = "$(TARGET_NAME)";
326326
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -353,7 +353,7 @@
353353
"@executable_path/../Frameworks",
354354
);
355355
MACOSX_DEPLOYMENT_TARGET = 14.4;
356-
MARKETING_VERSION = 0.1;
356+
MARKETING_VERSION = 0.2;
357357
PRODUCT_BUNDLE_IDENTIFIER = com.fguzman82.CoreMLProfiler;
358358
PRODUCT_NAME = "$(TARGET_NAME)";
359359
SWIFT_EMIT_LOC_STRINGS = YES;

CoreMLProfiler/ContentView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,9 @@ struct ContentView: View {
382382
cost: row["cost"] as? Double ?? 0.0,
383383
preferred_device: row["preferred_device"] as? String ?? "",
384384
supported_devices: row["supported_devices"] as? String ?? "",
385-
start_time: row["start_time"] as? Double ?? 0.0,
386-
end_time: row["end_time"] as? Double ?? 0.0,
387-
op_time: row["op_time"] as? Double ?? 0.0,
385+
start_time: full ? (row["start_time"] as? Double ?? 0.0) : 0.0,
386+
end_time: full ? (row["end_time"] as? Double ?? 0.0) : 0.0,
387+
op_time: full ? (row["op_time"] as? Double ?? 0.0) : 0.0,
388388
ane_msg: row["validationMessages"] as? String ?? ""
389389
)
390390
}

CoreMLProfiler/CoreMLProcessor.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,16 @@ class CoreMLProcessor: ObservableObject {
109109

110110
// Decode the analytics.mil file
111111
let operations = decodeAnalyticsFile(at: latestAnalyticsFile)
112-
// log("Decoded operations: \(operations)\n")
112+
// print("Decoded operations: \(operations)\n")
113113

114114
// Convert operations to DataFrame
115115
let analyticsDataFrame = try convertOperationsToDataFrame(operations: operations)
116-
print("Analytics DataFrame: \(analyticsDataFrame)\n")
116+
// print("Analytics DataFrame: \(analyticsDataFrame)\n")
117117

118118
// Copy validation messages to selectedDataFrame
119119
copyValidationMessages(from: analyticsDataFrame, to: &selectedDataFrame)
120-
print("Consolided DataFrame: \(selectedDataFrame.selecting(columnNames: "validationMessages"))\n")
120+
//print("Consolided DataFrame: \(selectedDataFrame.selecting(columnNames: "validationMessages"))\n")
121+
121122
}
122123

123124
return (selectedDataFrame, counts)

0 commit comments

Comments
 (0)