Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
show isStaticBinding in StatsWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
ialex32x committed Oct 27, 2021
1 parent 466d12d commit 77a2d4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/jsb/Source/Unity/Editor/ScriptEngineStatsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public struct TimerInfo
public bool alive;

public Native.JSMemoryUsage memoryUsage;
public bool isStaticBinding;
public int exportedTypes;
public int managedObjectCount;
public int managedObjectCap;
Expand Down Expand Up @@ -132,6 +133,7 @@ private static void OnSnapshotRequest(ScriptRuntime runtime, Utils.JSAction act)

var typeDB = runtime.GetTypeDB();
snapshot.exportedTypes = typeDB.Count;
snapshot.isStaticBinding = runtime.isStaticBinding;

var objectCache = runtime.GetObjectCache();
var stringCache = runtime.GetMainContext().GetStringCache();
Expand Down Expand Up @@ -212,6 +214,7 @@ private void InspectSnapshow(Snapshot snapshot)

Block("Misc.", () =>
{
EditorGUILayout.Toggle("Static Bind", snapshot.isStaticBinding);
EditorGUILayout.IntField("Exported Types", snapshot.exportedTypes);
EditorGUILayout.BeginHorizontal();
EditorGUILayout.TextField("ManagedObject Count", snapshot.managedObjectCount + "/" + snapshot.managedObjectCap, GUILayout.ExpandWidth(false));
Expand Down

0 comments on commit 77a2d4b

Please sign in to comment.