Emveepee.Widgets.ProfilerProcess.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
        public void Start()
        {
            try {
                proc.Start ();
                is_running = true;
            } catch (System.ComponentModel.Win32Exception e) {
                Console.WriteLine ("Got error code starting process: " + e.NativeErrorCode);
            }
        }

Usage Example

Exemplo n.º 1
0
 void StartProfile(ProfileConfiguration config)
 {
     ProfileView view = new ProfileView ();
     view.Show ();
     View = view;
     logging_enabled_action.Visible = true;
     logging_enabled_action.Active = config.StartEnabled;
     proc = new ProfilerProcess (config);
     proc.Paused += delegate { Refresh (view); };
     proc.Exited += delegate { Refresh (view); logging_enabled_action.Visible = false; };
     proc.Start ();
     if (config.TargetPath.EndsWith (".aspx"))
         GLib.Timeout.Add (5000, delegate { ShowBrowser (config.TargetPath); return false; });
     log_info = new LogInfo (proc.LogFile, config.ToString ());
     history.LogFiles.Prepend (log_info);
     history.Configs.Prepend (config);
 }