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

Unified Diff: tools/cygprofile/cygprofile_android.h

Issue 10697079: Upstreaming Cygprofile for Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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: tools/cygprofile/cygprofile_android.h
diff --git a/tools/cygprofile/cygprofile_android.h b/tools/cygprofile/cygprofile_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d3ea68cea0fed0875e28692cf41ce2696eb0630
--- /dev/null
+++ b/tools/cygprofile/cygprofile_android.h
@@ -0,0 +1,47 @@
+/*
+ * cygprofile_android.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_android.cc for details on usage.
+ */
+
+#ifndef TOOLS_CYGPROFILE_CYGPROFILE_ANDROID_H_
+#define TOOLS_CYGPROFILE_CYGPROFILE_ANDROID_H_
+
+namespace cygprofile {
+
+#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
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698