protected override void OnInitializeGraphView(EventGraphListView graphView)
        {
            if (graphView == null)
            {
                return;
            }

            Color labelBgColor = GraphColors.LabelGraphLabelBackground;

            Color refCountBgColor = new Color(53 / 255f, 136 / 255f, 167 / 255f, 1);
            Color loadingBgColor  = Color.Lerp(refCountBgColor, GraphColors.WindowBackground, 0.5f);
            Color refCountColor   = new Color(123 / 255f, 158 / 255f, 6 / 255f, 1);

            //Each DefineGraph call makes an association between a "name" (e.g. EventCount) and all EventDataSets with a matching "graph" member.
            //These graphs are then used to determine how/what the graphView will draw when dealing with samples from its associated EventDataSets

            graphView.DefineGraph("EventCount", 0, new GraphLayerVertValueLine(0, "EventCount", "Event Counts", Color.green),
                                  new GraphLayerLabel(0, "EventCount", "Number of instantiations on current frame", refCountColor, GraphColors.LabelGraphLabelBackground, v => v.ToString()));

            graphView.DefineGraph("InstantiationCount", 0, new GraphLayerVertValueLine(0, "InstantiationCount", "Instantiation Counts", Color.green),
                                  new GraphLayerLabel(0, "InstantiationCount", "Number of instantiations on current frame", refCountColor, GraphColors.LabelGraphLabelBackground, v => v.ToString()));

            graphView.DefineGraph("ResourceManager", (int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount,
                                  new GraphLayerBackgroundGraph((int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount, refCountBgColor, (int)ResourceManager.DiagnosticEventType.AsyncOperationPercentComplete, loadingBgColor, "LoadPercent", "Loaded"),
                                  new GraphLayerBarChartMesh((int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount, "RefCount", "Reference Count", refCountColor),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationCreate, "", "", Color.grey, Color.grey),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationComplete, "", "", Color.white, Color.white),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationDestroy, "", "", Color.black, Color.black),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationFail, "", "", Color.red, Color.red),
                                  new GraphLayerLabel((int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount, "RefCount", "Reference Count", refCountColor, labelBgColor, v => v.ToString())
                                  );
        }
 protected override void OnInitializeGraphView(EventGraphListView gv)
 {
     gv.DefineGraph("EventStress", 0,
                    new GraphLayerBarChartMesh(0, "Stuff", "Misc Stuff", Color.green),
                    new GraphLayerBarChartMesh(1, "Stuff", "Misc Stuff", Color.red * .8f),
                    new GraphLayerBarChartMesh(2, "Stuff", "Misc Stuff", Color.blue * .5f)
                    );
 }
        protected override void OnInitializeGraphView(EventGraphListView graphView)
        {
            if (graphView == null)
            {
                return;
            }

            Color labelBgColor = GraphColors.LabelGraphLabelBackground;

            Color refCountBgColor = new Color(53 / 255f, 136 / 255f, 167 / 255f, 1);
            Color loadingBgColor  = Color.Lerp(refCountBgColor, GraphColors.WindowBackground, 0.5f);

            graphView.DefineGraph("ResourceManager", (int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount,
                                  new GraphLayerBackgroundGraph((int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount, refCountBgColor, (int)ResourceManager.DiagnosticEventType.AsyncOperationPercentComplete, loadingBgColor, "LoadPercent", "Loaded"),
                                  new GraphLayerBarChartMesh((int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount, "RefCount", "Reference Count", new Color(123 / 255f, 158 / 255f, 6 / 255f, 1)),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationCreate, "", "", Color.grey, Color.grey),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationComplete, "", "", Color.white, Color.white),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationDestroy, "", "", Color.black, Color.black),
                                  new GraphLayerEventMarker((int)ResourceManager.DiagnosticEventType.AsyncOperationFail, "", "", Color.red, Color.red),
                                  new GraphLayerLabel((int)ResourceManager.DiagnosticEventType.AsyncOperationReferenceCount, "RefCount", "Reference Count", new Color(123 / 255f, 158 / 255f, 6 / 255f, 1), labelBgColor, v => v.ToString())
                                  );

            graphView.DefineGraph("InstantiationCount", 0, new GraphLayerVertValueLine(0, "Instantiation Count", "Instantiation Count", Color.green));
        }