public void Test1()
        {
            TraceField[] traceFields = new TraceField[] { TraceField.ApplicationName, TraceField.TextData, TraceField.StartTime, TraceField.Reads, TraceField.LoginSID };

            profiler.AddTraceEvent(TraceEvent.RPCCompleted, traceFields);
            profiler.AddTraceEvent(TraceEvent.RPCStarting, traceFields);
            profiler.AddTraceEvent(TraceEvent.SQLBatchCompleted, traceFields);
            profiler.AddTraceEvent(TraceEvent.SQLBatchStarting, traceFields);

            profiler.AddTraceFilter(TraceField.TextData, LogicalOperator.AND, ComparisonOperator.NotEqual, "sdsd");

            profiler.TraceEvent += new EventHandler <TraceEventArgs>(profiler_TraceEvent);
            profiler.Start();

            re.WaitOne(new TimeSpan(0, 0, 10), true);
            profiler.Stop();
        }