Page Speed Optimization Libraries
1.8.31.2
|
Simple AbstractLogRecord implementation which owns a LoggingInfo protobuf. More...
#include "log_record.h"
Public Member Functions | |
LogRecord (AbstractMutex *mutex) | |
LoggingInfo * | logging_info () |
virtual void | SetImageStats (int num_img_tags, int num_inlined_img_tags, int num_critical_images_used) |
Sets image related statistics. | |
virtual void | SetResourceCounts (int num_external_css, int num_scripts) |
Sets the number of external resources on an HTML page. | |
virtual void | AddFoundPropertyToCohortInfo (int page_type, const GoogleString &cohort, const GoogleString &property) |
virtual void | AddRetrievedPropertyToCohortInfo (int page_type, const GoogleString &cohort, const GoogleString &property) |
void | SetCacheStatusForCohortInfo (int page_type, const GoogleString &cohort, bool found, int key_state) |
Updates the cohort info to update the cache key state. | |
virtual void | LogImageRewriteActivity (const char *id, const GoogleString &url, RewriterApplication::Status status, bool is_image_inlined, bool is_critical_image, bool is_url_rewritten, int size, bool try_low_res_src_insertion, bool low_res_src_inserted, ImageType low_res_image_type, int low_res_data_size) |
Log a RewriterInfo for the image rewrite filter. | |
virtual void | LogDeviceInfo (int device_type, bool supports_image_inlining, bool supports_lazyload_images, bool supports_critical_images_beacon, bool supports_deferjs, bool supports_webp_in_place, bool supports_webp_rewritten_urls, bool supports_webplossless_alpha, bool is_bot, bool supports_split_html, bool can_preload_resources) |
Log information related to the user agent and device making the request. | |
bool | WriteLogImpl () |
Simple AbstractLogRecord implementation which owns a LoggingInfo protobuf.
virtual void net_instaweb::LogRecord::AddFoundPropertyToCohortInfo | ( | int | page_type, |
const GoogleString & | cohort, | ||
const GoogleString & | property | ||
) | [inline, virtual] |
Updated the cohort info to set the found to true for the given property.
Implements net_instaweb::AbstractLogRecord.
virtual void net_instaweb::LogRecord::AddRetrievedPropertyToCohortInfo | ( | int | page_type, |
const GoogleString & | cohort, | ||
const GoogleString & | property | ||
) | [inline, virtual] |
Updated the cohort info to set the retrieved to true for the given property.
Implements net_instaweb::AbstractLogRecord.
LoggingInfo* net_instaweb::LogRecord::logging_info | ( | ) | [inline, virtual] |
Implements net_instaweb::AbstractLogRecord.
bool net_instaweb::LogRecord::WriteLogImpl | ( | ) | [inline, virtual] |
Implements writing a log, base implementation is a no-op. Returns false if writing failed.
Implements net_instaweb::AbstractLogRecord.
Reimplemented in net_instaweb::CopyOnWriteLogRecord.