19 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_ADD_INSTRUMENTATION_FILTER_H_
20 #define NET_INSTAWEB_REWRITER_PUBLIC_ADD_INSTRUMENTATION_FILTER_H_
30 namespace net_instaweb {
38 static const char kLoadTag[];
39 static const char kUnloadTag[];
53 virtual void StartElementImpl(
HtmlElement* element);
55 virtual const char*
Name()
const {
return "AddInstrumentation"; }
74 bool added_head_script_;
75 bool added_unload_script_;
virtual const char * Name() const
The name of this filter – used for logging and debugging.
Definition: add_instrumentation_filter.h:55
Definition: common_filter.h:47
Variable * instrumentation_script_added_count_
The total number of times instrumentation script is added.
Definition: add_instrumentation_filter.h:63
Definition: statistics.h:43
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
virtual void StartDocumentImpl()
Definition: html_element.h:42
ScriptUsage GetScriptUsage() const override
Definition: add_instrumentation_filter.h:57
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
static const char kInstrumentationScriptAddedCount[]
Counters.
Definition: add_instrumentation_filter.h:44
ScriptUsage
Describes a filter's relationship with scripts.
Definition: html_filter.h:38
Definition: rewrite_driver.h:100
Injects javascript instrumentation for monitoring page-rendering time.
Definition: add_instrumentation_filter.h:36
virtual void EndDocument()
Definition: html_filter.h:43
virtual void DetermineEnabled(GoogleString *disabled_reason)