| OLD | NEW |
| 1 // Copyright (c) 2005, Google Inc. | 1 // Copyright (c) 2005, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #elif defined(HAVE_UCONTEXT_H) | 48 #elif defined(HAVE_UCONTEXT_H) |
| 49 #include <ucontext.h> | 49 #include <ucontext.h> |
| 50 #elif defined(HAVE_CYGWIN_SIGNAL_H) | 50 #elif defined(HAVE_CYGWIN_SIGNAL_H) |
| 51 #include <cygwin/signal.h> | 51 #include <cygwin/signal.h> |
| 52 typedef ucontext ucontext_t; | 52 typedef ucontext ucontext_t; |
| 53 #else | 53 #else |
| 54 typedef int ucontext_t; // just to quiet the compiler, mostly | 54 typedef int ucontext_t; // just to quiet the compiler, mostly |
| 55 #endif | 55 #endif |
| 56 #include <sys/time.h> | 56 #include <sys/time.h> |
| 57 #include <string> | 57 #include <string> |
| 58 #include <google/profiler.h> | 58 #include <gperftools/profiler.h> |
| 59 #include <google/stacktrace.h> | 59 #include <gperftools/stacktrace.h> |
| 60 #include "base/commandlineflags.h" | 60 #include "base/commandlineflags.h" |
| 61 #include "base/logging.h" | 61 #include "base/logging.h" |
| 62 #include "base/googleinit.h" | 62 #include "base/googleinit.h" |
| 63 #include "base/spinlock.h" | 63 #include "base/spinlock.h" |
| 64 #include "base/sysinfo.h" /* for GetUniquePathFromEnv, etc */ | 64 #include "base/sysinfo.h" /* for GetUniquePathFromEnv, etc */ |
| 65 #include "profiledata.h" | 65 #include "profiledata.h" |
| 66 #include "profile-handler.h" | 66 #include "profile-handler.h" |
| 67 #ifdef HAVE_CONFLICT_SIGNAL_H | 67 #ifdef HAVE_CONFLICT_SIGNAL_H |
| 68 #include "conflict-signal.h" /* used on msvc machines */ | 68 #include "conflict-signal.h" /* used on msvc machines */ |
| 69 #endif | 69 #endif |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 extern "C" void ProfilerStop() { } | 333 extern "C" void ProfilerStop() { } |
| 334 extern "C" void ProfilerGetCurrentState(ProfilerState* state) { | 334 extern "C" void ProfilerGetCurrentState(ProfilerState* state) { |
| 335 memset(state, 0, sizeof(*state)); | 335 memset(state, 0, sizeof(*state)); |
| 336 } | 336 } |
| 337 | 337 |
| 338 #endif // OS_CYGWIN | 338 #endif // OS_CYGWIN |
| 339 | 339 |
| 340 // DEPRECATED routines | 340 // DEPRECATED routines |
| 341 extern "C" PERFTOOLS_DLL_DECL void ProfilerEnable() { } | 341 extern "C" PERFTOOLS_DLL_DECL void ProfilerEnable() { } |
| 342 extern "C" PERFTOOLS_DLL_DECL void ProfilerDisable() { } | 342 extern "C" PERFTOOLS_DLL_DECL void ProfilerDisable() { } |
| OLD | NEW |