Ignore:
Timestamp:
Nov 22, 2012, 8:35:18 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
e3f52366c2a42547169d92be7935671627b1705b
Parents:
2ee8ac18d25da263d8ff5b140f45b9ac7be22c0b
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-11-22 20:35:18+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-06-17 09:19:03+02:00
Message:
For profiling: use google proftools (optionally)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • dyn_modules/syzextra/mod_main.cc

    r2ee8ac r0c86ae  
    3232#include "myNF.h"
    3333
    34 #ifdef HAVE_GOOGLE_PROFILER
     34
     35#if GOOGLE_PROFILE_ENABLED
    3536#include <google/profiler.h>
    36 #endif // HAVE_GOOGLE_PROFILER
     37#endif // #if GOOGLE_PROFILE_ENABLED
    3738
    3839
     
    177178{
    178179  NoReturn(__res);
    179 #ifdef HAVE_GOOGLE_PROFILER
     180#if GOOGLE_PROFILE_ENABLED
    180181  if( h!= NULL && h->Typ() == STRING_CMD )
    181182  {
     
    186187    WerrorS("ProfilerStart requires a string [name] argument");
    187188#else
    188   WarnS("Sorry no google profiler support (undefined HAVE_GOOGLE_PROFILER)...");
     189  WarnS("Sorry no google profiler support (GOOGLE_PROFILE_ENABLE!=1)...");
    189190//  return TRUE; // ?
    190 #endif // #ifdef HAVE_GOOGLE_PROFILER
     191#endif // #if GOOGLE_PROFILE_ENABLED
    191192  return FALSE;
    192193  (void)h;
     
    195196{
    196197  NoReturn(__res);
    197 #ifdef HAVE_GOOGLE_PROFILER
     198#if GOOGLE_PROFILE_ENABLED
    198199  ProfilerStop();
    199200#else
    200   WarnS("Sorry no google profiler support (undefined HAVE_GOOGLE_PROFILER)...");
     201  WarnS("Sorry no google profiler support (GOOGLE_PROFILE_ENABLED!=1)...");
    201202//  return TRUE; // ?
    202 #endif // #ifdef HAVE_GOOGLE_PROFILER
     203#endif // #if GOOGLE_PROFILE_ENABLED
    203204  return FALSE;
    204205}
Note: See TracChangeset for help on using the changeset viewer.