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

Unified Diff: third_party/grpc/src/core/profiling/stap_timers.c

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « third_party/grpc/src/core/profiling/stap_probes.d ('k') | third_party/grpc/src/core/profiling/timers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/src/core/profiling/stap_timers.c
diff --git a/third_party/WebKit/public/web/WebOptionElement.h b/third_party/grpc/src/core/profiling/stap_timers.c
similarity index 62%
copy from third_party/WebKit/public/web/WebOptionElement.h
copy to third_party/grpc/src/core/profiling/stap_timers.c
index 63cc0ffde4fce00c14b67e519cb2a432ba6f602c..efcd1af4a1c8a6599954ecf441b8dfa3e3ea8cd2 100644
--- a/third_party/WebKit/public/web/WebOptionElement.h
+++ b/third_party/grpc/src/core/profiling/stap_timers.c
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ *
+ * Copyright 2015, Google Inc.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -26,43 +28,38 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
*/
-#ifndef WebOptionElement_h
-#define WebOptionElement_h
-
-#include "WebElement.h"
-
-namespace blink {
+#include <grpc/support/port_platform.h>
-class HTMLOptionElement;
-class WebString;
+#ifdef GRPC_STAP_PROFILER
-class WebOptionElement final : public WebElement {
-public:
- WebOptionElement() : WebElement() { }
- WebOptionElement(const WebOptionElement& element) : WebElement(element) { }
+#include "src/core/profiling/timers.h"
- WebOptionElement& operator=(const WebOptionElement& element)
- {
- WebElement::assign(element);
- return *this;
- }
- void assign(const WebOptionElement& element) { WebElement::assign(element); }
+#include <sys/sdt.h>
+/* Generated from src/core/profiling/stap_probes.d */
+#include "src/core/profiling/stap_probes.h"
- BLINK_EXPORT WebString value() const;
- BLINK_EXPORT WebString text() const;
- BLINK_EXPORT WebString label() const;
+/* Latency profiler API implementation. */
+void gpr_timer_add_mark(int tag, const char *tagstr, void *id, const char *file,
+ int line) {
+ _STAP_ADD_MARK(tag);
+}
-#if BLINK_IMPLEMENTATION
- WebOptionElement(HTMLOptionElement*);
- WebOptionElement& operator=(HTMLOptionElement*);
- operator HTMLOptionElement*() const;
-#endif
-};
+void gpr_timer_add_important_mark(int tag, const char *tagstr, void *id,
+ const char *file, int line) {
+ _STAP_ADD_IMPORTANT_MARK(tag);
+}
-DECLARE_WEB_NODE_TYPE_CASTS(WebOptionElement);
+void gpr_timer_begin(int tag, const char *tagstr, void *id, const char *file,
+ int line) {
+ _STAP_TIMING_NS_BEGIN(tag);
+}
-} // namespace blink
+void gpr_timer_end(int tag, const char *tagstr, void *id, const char *file,
+ int line) {
+ _STAP_TIMING_NS_END(tag);
+}
-#endif
+#endif /* GRPC_STAP_PROFILER */
« no previous file with comments | « third_party/grpc/src/core/profiling/stap_probes.d ('k') | third_party/grpc/src/core/profiling/timers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698