List:Commits« Previous MessageNext Message »
From:Sergei Golubchik Date:March 21 2009 9:07am
Subject:Re: Review of the performance schema instrumentation interface
View as plain text  
Hi, Marc!

On Mar 19, Marc Alff wrote:
> 
> Replying in English for the other readers
> 
> The problem:
> 
> In include/mysql/psi.h today, the proposed change is to use macros like
> 
> #ifdef HAVE_PERFORMANCE_SCHEMA
> #define MYSQL_FILE_PREAD <one way>
> #else
> #define MYSQL_FILE_PREAD <another way>
> #endif
> 
> (Let's call this solution [1])
> 
> and change the code from
> 
> my_pread(...)
> 
> to
> 
> MYSQL_FILE_PREAD(...)

One comment about the style.
I'd prefer the instrumentation to mostly as transparent as possible to
the most of the code. And using UPPERCASE for commonly used functions
(or macros pretending to be functions) is very annoying.

Could this be mysql_file_pread() ? Pretty please ?
 
Regards / Mit vielen Grüßen,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  Principal Software Engineer/Server Architect
/_/  /_/\_, /___/\___\_\___/  Sun Microsystems GmbH, HRB München 161028
       <___/                  Sonnenallee 1, 85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Häring
Thread
[Fwd: Review of the performance schema instrumentation interface (was:moins de remplacements)]Marc Alff19 Mar
  • Re: [Fwd: Review of the performance schema instrumentation interface(was: moins de remplacements)]Guilhem Bichot23 Mar
    • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff23 Mar
      • Re: [Fwd: Review of the performance schema instrumentation interfaceGuilhem Bichot7 Apr
        • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff7 Apr
          • Re: [Fwd: Review of the performance schema instrumentation interfaceGuilhem Bichot7 Apr
            • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff7 Apr
              • Re: [Fwd: Review of the performance schema instrumentation interfaceGuilhem Bichot8 Apr
                • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff20 Jun
  • Instrumenting Maria system threads Re: [Fwd: Review of the performanceschema instrumentation interface (was: moins de remplacements)]Guilhem Bichot23 Mar
  • Re: Review of the performance schema instrumentation interfaceSergei Golubchik10 Apr
    • Re: Review of the performance schema instrumentation interfaceMichael Widenius13 Apr