Esempio n. 1
0
        internal void SerializeExtraFields(BuildXLWriter writer)
        {
            Fingerprint.WriteTo(writer);

            writer.Write(ProcessExecutionTime);
            WriteFileMonitoringViolationCounters(writer, FileMonitoringViolations);
            IO.Serialize(writer);
            writer.Write(UserTime);
            writer.Write(KernelTime);
            MemoryCounters.Serialize(writer);
            writer.WriteCompact(NumberOfProcesses);
        }
Esempio n. 2
0
        private void saveChanges_Click(object sender, EventArgs e)
        {
            chromeAlertTime             = Int32.Parse(chromeTime.Text) * 1000;
            chromeMemoryUsage           = Int32.Parse(chromeThreshold.Text);
            IEAlertTime                 = Int32.Parse(IETime.Text) * 1000;
            IEMemoryUsage               = Int32.Parse(chromeThreshold.Text);
            idleCheckerTime             = Int32.Parse(idleAlertTime.Text) * 1000;
            guiActivityThreshold        = Int32.Parse(GuiAlertThreshold.Text);
            liveInfoTime                = Int32.Parse(liveInfoAlertTime.Text) * 1000;
            committedBytealert          = committedBytesAlert.Checked;
            ramAlertTime                = Int32.Parse(ramTime.Text) * 1000;
            ramPercentageAlert          = Int32.Parse(ramPercentageThreshold.Text);
            runningAppTime              = Int32.Parse(appAlertTime.Text) * 1000;
            runningApplicationThreshold = Int32.Parse(appAlertThreshold.Text);
            processExists               = processRunning.Text;
            if (guiAlertCheckbox.Checked)
            {
                guistate = true;
            }
            else
            {
                guistate = false;
            }
            if (committedBytesAlert.Checked)
            {
                committedBytealert = true;
            }
            else
            {
                committedBytealert = false;
            }
            if (killProcessCheckbox.Checked)
            {
                killProcess = true;
            }
            else
            {
                killProcess = false;
            }

            Browser          b = new Browser();
            IdleCheckForm    i = new IdleCheckForm();
            MemoryCounters   m = new MemoryCounters();
            SystemMemoryInfo s = new SystemMemoryInfo();
            ProcessList      p = new ProcessList();

            this.Close();
        }