Skip to content

Commit e964a7a

Browse files
committed
Added Export to NetworkProfiler
1 parent 58b7fcb commit e964a7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MLAPI-Editor/MLAPIProfiler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ record = EditorGUILayout.Toggle("Record", record);
8282
}
8383
}
8484

85+
if (GUILayout.Button("Export datafile"))
86+
{
87+
File.WriteAllBytes(EditorUtility.SaveFilePanel("Save NetworkProfiler data", "", "networkProfilerData", ""), BinarySerializer.Serialize(new ProfilerContainer() { ticks = currentTicks.ToArray() }));
88+
}
89+
8590
EditorGUILayout.EndHorizontal();
8691
float prevHis = captureCount;
8792
captureCount = EditorGUILayout.DelayedIntField("History count", captureCount);

0 commit comments

Comments
 (0)