| 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 */
|
|
|