示例#1
0
    public void InitializePMSession()
    {
        Debug.Log("Initializing PerformanceMonitor Session");

        _PM = new PerformanceMonitor(true);

        int cntStreams = _PM.OpenStream(0);

        Debug.Log("Opened " + cntStreams.ToString() + " Performance Monitor Streams.");

        // RESET EVERYTHING
        _PM.C2_EnvironmentReset(0);
        Debug.Log(_PM.Session.Devices[0].ConfigData.ToString());

        // GET MACHINE STATUS
        if (_PM.C2_GetMachineStatus(0))
        {
            Debug.Log("Executed Command C2_GetMachineStatus");
        }
        Debug.Log(_PM.Session.Devices[0].ConfigData.ToString());
    }