public ParformanceCounter(ByteExpression byteExpression, string outputPath = null) { //string path = outputPath ?? Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName; string path = outputPath ?? @"W:\MeasurementResult.txt"; this.stopwatch = new Stopwatch(); this.stream = new FileStream(path, FileMode.Create); this.writer = new StreamWriter(stream); }
internal ByteColumn(ByteExpression expr, string columnName) : this(columnName) { if (ReferenceEquals(expr, null)) { throw new ArgumentNullException("expr"); } Sql = expr.Sql; if (expr.ChildExpressions != null) { ChildExpressions.AddRange(expr.ChildExpressions); } }
public Assignment Set(ByteExpression value) { return(new Assignment(this, ((object)value) == null ? (IExpression)NullExpression.Value : value)); }
internal OracleByteColumn(ByteExpression expr, string columnName) : base(expr, columnName) { }
public static long GetMemorySize(this ByteExpression expression) { return(GC.GetTotalMemory(true) / (long)(Math.Pow(10, 3 * (Math.Max(Convert.ToInt32(expression), 1))))); }