Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: base/android/third_party/cygprofile_startup/cygprofile_startup.h

Issue 10697079: Upstreaming Cygprofile for Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: address digit comment Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/android/third_party/cygprofile_startup/cygprofile_startup.h
diff --git a/base/android/third_party/cygprofile_startup/cygprofile_startup.h b/base/android/third_party/cygprofile_startup/cygprofile_startup.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff3e22997be1c36773754821a3e0a33c37c63831
--- /dev/null
+++ b/base/android/third_party/cygprofile_startup/cygprofile_startup.h
@@ -0,0 +1,47 @@
+/*
+ * cygprofile_startup.h - Header file for CygProfiler
+ *
+ * Michal Ludvig <michal@logix.cz>
+ * http://www.logix.cz/michal/devel
+ *
+ * This source code is a public domain.
+ *
+ * See cygprofile_startup.cc for details on usage.
+ */
+
+#ifndef BASE_ANDROID_THIRD_PARTY_CYGPROFILE_STARTUP_CYGPROFILE_STARTUP_H_
+#define BASE_ANDROID_THIRD_PARTY_CYGPROFILE_STARTUP_CYGPROFILE_STARTUP_H_
+
+namespace cygprofile_startup {
+
+#ifdef __cplusplus
+extern "C" {
+ #endif
+
+ void cygprofile_enable(void)
+ __attribute__((no_instrument_function));
+ void cygprofile_disable(void)
+ __attribute__((no_instrument_function));
+
+ bool cygprofile_isenabled(void)
+ __attribute__((no_instrument_function));
+
+ int cygprofile_setfilename(const char* filename)
+ __attribute__((no_instrument_function));
+
+ char* cygprofile_getfilename(void)
+ __attribute__((no_instrument_function));
+
+ void cygprofile_start(const char* filename)
+ __attribute__((no_instrument_function));
+
+ void cygprofile_end(void)
+ __attribute__((no_instrument_function));
+
+ #ifdef __cplusplus
+};
+#endif
+
+} // namespace cygprofile_startup
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698