Package io.sentry.profilemeasurements
Class ProfileMeasurement
java.lang.Object
io.sentry.profilemeasurements.ProfileMeasurement
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
@Internal
public final class ProfileMeasurement
extends Object
implements JsonUnknown, JsonSerializable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProfileMeasurement
(@NotNull String unit, @NotNull Collection<ProfileMeasurementValue> values) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull String
getUnit()
@NotNull Collection<ProfileMeasurementValue>
int
hashCode()
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
setUnknown
(@Nullable Map<String, Object> unknown) void
setValues
(@NotNull Collection<ProfileMeasurementValue> values)
-
Field Details
-
ID_FROZEN_FRAME_RENDERS
- See Also:
-
ID_SLOW_FRAME_RENDERS
- See Also:
-
ID_SCREEN_FRAME_RATES
- See Also:
-
ID_CPU_USAGE
- See Also:
-
ID_MEMORY_FOOTPRINT
- See Also:
-
ID_MEMORY_NATIVE_FOOTPRINT
- See Also:
-
ID_UNKNOWN
- See Also:
-
UNIT_HZ
- See Also:
-
UNIT_NANOSECONDS
- See Also:
-
UNIT_BYTES
- See Also:
-
UNIT_PERCENT
- See Also:
-
UNIT_UNKNOWN
- See Also:
-
-
Constructor Details
-
ProfileMeasurement
public ProfileMeasurement() -
ProfileMeasurement
public ProfileMeasurement(@NotNull @NotNull String unit, @NotNull @NotNull Collection<ProfileMeasurementValue> values)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
getUnit
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
setUnit
-
getValues
-
setValues
-