AI-generated Key Takeaways
-
HitBuilders.TimingBuilder is used to collect timing-related data, such as resource load times.
-
For meaningful data, the category and value should be set before sending the hit.
-
There are constructors to create a TimingBuilder with or without initial category, variable, and value.
-
Public methods are available to set the category, label, value, and variable for the timing hit.
-
This class inherits methods from HitBuilders.HitBuilder for additional hit customization options.
Hit builder used to collect timing related data. For example, this hit type can be useful to measure resource load times. For meaningful data, at least the category and the value should be set before sending the hit.
Public Constructor Summary
|
TimingBuilder(String category,
String
variable, long value)
Convenience constructor for creating a timing hit.
|
Public Method Summary
| HitBuilders.TimingBuilder |
setCategory(String category)
|
| HitBuilders.TimingBuilder | |
| HitBuilders.TimingBuilder |
setValue(long value)
|
| HitBuilders.TimingBuilder |
setVariable(String variable)
|
Inherited Method Summary
Public Constructors
public TimingBuilder ()
public TimingBuilder (String category, String variable, long value)
Convenience constructor for creating a timing hit. Additional fields can be specified using the setter methods.
Parameters
| category | The type of variable being measured. Example: AssetLoader |
|---|---|
| variable | The variable being measured. Example: AssetLoader.load |
| value | The value associated with the variable. Example: 1000 |
Public Methods
public HitBuilders.TimingBuilder setCategory (String category)
public HitBuilders.TimingBuilder setLabel (String label)
public HitBuilders.TimingBuilder setValue (long value)
Parameters
| value | A timing value, in milliseconds. |
|---|