XEventOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
XEvent |
An XEvent is a trace event, optionally annotated with XStats. |
XEvent.Builder |
An XEvent is a trace event, optionally annotated with XStats. |
|
Public Methods
public
abstract
long
getDurationPs
()
Duration of the event in picoseconds. Can be zero for an instant event.
int64 duration_ps = 3;
XEventMetadata.id of corresponding metadata.
int64 metadata_id = 1;
public
abstract
long
getNumOccurrences
()
Number of occurrences of the event, if aggregated.
int64 num_occurrences = 5;
public
abstract
long
getOffsetPs
()
Start time of the event in picoseconds, as offset from
XLine.timestamp_ns().
int64 offset_ps = 2;
public
abstract
XStat
getStats
(int index)
XStats associated with the event.
Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;
public
abstract
int
getStatsCount
()
XStats associated with the event.
Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;
public
abstract
List<XStat>
getStatsList
()
XStats associated with the event.
Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;
public
abstract
XStatOrBuilder
getStatsOrBuilder
(int index)
XStats associated with the event.
Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;
public
abstract
List<? extends XStatOrBuilder>
getStatsOrBuilderList
()
XStats associated with the event.
Each of these XStats should have a different metadata_id.
repeated .tensorflow.profiler.XStat stats = 4;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# XEventOrBuilder\n\npublic interface **XEventOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [XEvent](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEvent), [XEvent.Builder](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEvent.Builder) |-----------------------------------------------------------------------------------|------------------------------------------------------------------------| | [XEvent](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEvent) | ``` An XEvent is a trace event, optionally annotated with XStats. ``` | | [XEvent.Builder](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEvent.Builder) | ``` An XEvent is a trace event, optionally annotated with XStats. ``` | |||\n\n### Public Methods\n\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [XEvent.DataCase](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEvent.DataCase) | [getDataCase](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getDataCase())() |\n| abstract long | [getDurationPs](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getDurationPs())() ``` Duration of the event in picoseconds. ``` |\n| abstract long | [getMetadataId](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getMetadataId())() ``` XEventMetadata.id of corresponding metadata. ``` |\n| abstract long | [getNumOccurrences](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getNumOccurrences())() ``` Number of occurrences of the event, if aggregated. ``` |\n| abstract long | [getOffsetPs](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getOffsetPs())() ``` Start time of the event in picoseconds, as offset from XLine.timestamp_ns(). ``` |\n| abstract [XStat](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStat) | [getStats](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getStats(int))(int index) ``` XStats associated with the event. ``` |\n| abstract int | [getStatsCount](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getStatsCount())() ``` XStats associated with the event. ``` |\n| abstract List\\\u003c[XStat](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStat)\\\u003e | [getStatsList](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getStatsList())() ``` XStats associated with the event. ``` |\n| abstract [XStatOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStatOrBuilder) | [getStatsOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getStatsOrBuilder(int))(int index) ``` XStats associated with the event. ``` |\n| abstract List\\\u003c? extends [XStatOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStatOrBuilder)\\\u003e | [getStatsOrBuilderList](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEventOrBuilder#getStatsOrBuilderList())() ``` XStats associated with the event. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract [XEvent.DataCase](/jvm/api_docs/java/org/tensorflow/proto/profiler/XEvent.DataCase)\n**getDataCase**\n()\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getDurationPs**\n()\n\n\u003cbr /\u003e\n\n```\n Duration of the event in picoseconds. Can be zero for an instant event.\n \n```\n`int64 duration_ps = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getMetadataId**\n()\n\n\u003cbr /\u003e\n\n```\n XEventMetadata.id of corresponding metadata.\n \n```\n`int64 metadata_id = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getNumOccurrences**\n()\n\n\u003cbr /\u003e\n\n```\n Number of occurrences of the event, if aggregated.\n \n```\n`int64 num_occurrences = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getOffsetPs**\n()\n\n\u003cbr /\u003e\n\n```\n Start time of the event in picoseconds, as offset from\n XLine.timestamp_ns().\n \n```\n`int64 offset_ps = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract [XStat](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStat)\n**getStats**\n(int index)\n\n\u003cbr /\u003e\n\n```\n XStats associated with the event.\n Each of these XStats should have a different metadata_id.\n \n```\n`repeated .tensorflow.profiler.XStat stats = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getStatsCount**\n()\n\n\u003cbr /\u003e\n\n```\n XStats associated with the event.\n Each of these XStats should have a different metadata_id.\n \n```\n`repeated .tensorflow.profiler.XStat stats = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract List\\\u003c[XStat](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStat)\\\u003e\n**getStatsList**\n()\n\n\u003cbr /\u003e\n\n```\n XStats associated with the event.\n Each of these XStats should have a different metadata_id.\n \n```\n`repeated .tensorflow.profiler.XStat stats = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract [XStatOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStatOrBuilder)\n**getStatsOrBuilder**\n(int index)\n\n\u003cbr /\u003e\n\n```\n XStats associated with the event.\n Each of these XStats should have a different metadata_id.\n \n```\n`repeated .tensorflow.profiler.XStat stats = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract List\\\u003c? extends [XStatOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/profiler/XStatOrBuilder)\\\u003e\n**getStatsOrBuilderList**\n()\n\n\u003cbr /\u003e\n\n```\n XStats associated with the event.\n Each of these XStats should have a different metadata_id.\n \n```\n`repeated .tensorflow.profiler.XStat stats = 4;`\n\n\u003cbr /\u003e"]]