Well, you can do simple:
StartTiming();
Execute();
LogElapsed();

Of if you want to do more fancy solution you should wrap all the FbXxx classes 
into wrappers. That's how other layers work (profilers, O/Rs, ...).

-- 
Mgr. Jiří Činčura
Independent IT Specialist

> -----Original Message-----
> From: Lukáš Vykydal [mailto:l.vyky...@gmail.com]
> Sent: Friday, January 16, 2015 11:03 AM
> To: firebird-net-provider@lists.sourceforge.net
> Subject: Re: [Firebird-net-provider] Make FbNetProvider classes unseal
> 
> We d'like to monitor performance (time to execute) for every statement.
> 
> We have a lot of code which use only base ADO.NET access to database.
> With this change we can find "performance killers" in this code more easly
> including parameters and plan.
> 
> That is the main reason for this request.
> 
> 
> Lukáš Vykydal
> 
> Dne 1/16/2015 v 10:48 AM Jiří Činčura napsal(a):
> > What are you trying to do that is not possible without it?
> >
> 
> 
> --------------------------------------------------------------------------
> ----
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Firebird-net-provider mailing list
> Firebird-net-provider@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to