Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 public Assignment Set(ByteExpression value)
 {
     return(new Assignment(this, ((object)value) == null ? (IExpression)NullExpression.Value : value));
 }
Exemplo n.º 4
0
 internal OracleByteColumn(ByteExpression expr, string columnName)
     : base(expr, columnName)
 {
 }
Exemplo n.º 5
0
 public static long GetMemorySize(this ByteExpression expression)
 {
     return(GC.GetTotalMemory(true) / (long)(Math.Pow(10, 3 * (Math.Max(Convert.ToInt32(expression), 1)))));
 }