/// <summary> /// Create a new InstrumentationPhase object. /// </summary> /// <param name="config">The phase list container.</param> /// <param name="logger"> /// Logger to save information about the basic blocks in the assembly. /// </param> /// <returns>A new InstrumentationPhase object.</returns> public static InstrumentPhase New(Phx.Phases.PhaseConfiguration config, LogWriter logger) { InstrumentPhase instrumentPhase = new InstrumentPhase(); instrumentPhase.Initialize(config, "CodeCoverage instrumentation phase"); #if PHX_DEBUG_SUPPORT instrumentPhase.PhaseControl = InstrumentPhase.InstrumentPhaseControl; #endif instrumentPhase.Log = logger; return(instrumentPhase); }
/// <summary> /// Initialize the Phoenix framework and instrumentor. /// </summary> /// <param name="arguments">Array of command line arguments.</param> public static void StaticInitialize(string[] arguments) { Application.InitializeTargets(); Phx.Initialize.BeginInitialization(); Application.InitializeCommandLine(); InstrumentPhase.Initialize(); Phx.Initialize.EndInitialization("PHX|*|_PHX_", arguments); if (!Application.CheckCommandLine()) { Application.Usage(); Phx.Term.All(Phx.Term.Mode.Fatal); Environment.Exit(1); } }
/// <summary> /// Create a new InstrumentationPhase object. /// </summary> /// <param name="config">The phase list container.</param> /// <param name="logger"> /// Logger to save information about the basic blocks in the assembly. /// </param> /// <returns>A new InstrumentationPhase object.</returns> public static InstrumentPhase New(Phx.Phases.PhaseConfiguration config, LogWriter logger) { InstrumentPhase instrumentPhase = new InstrumentPhase(); instrumentPhase.Initialize(config, "CodeCoverage instrumentation phase"); #if PHX_DEBUG_SUPPORT instrumentPhase.PhaseControl = InstrumentPhase.InstrumentPhaseControl; #endif instrumentPhase.Log = logger; return instrumentPhase; }