Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ITracePointBuilder

interface ITracePointBuilder
Extends com.amazon.apmf.IStandard ITracePointBuilder interface is a builder for creating a generic tracepoint calls for begin, end, and instant tracepoints. When using ITraceCategory to make a tracepoint, a name and args must be passed or a tracepoint will not be properly emitted. All other categories are optional.

Methods

name()

ITracePointBuilder* name(string name)
Sets the name of tracepoint for ITracePointBuilder that will used by ITracePoint. Once set, this cannot be changed within the object.

Parameters

name
string — Required Name of tracepoint.

Returns

ITracePointBuilder* ITracePointBuilder with set name.
ITracePointBuilder* cookie(i64 cookie)
Sets the thread ID of tracepoint for ITracePointBuilder that will used by ITracePoint. Once set, this cannot be changed within the object.

Parameters

cookie
i64 — Required Thread id.

Returns

ITracePointBuilder* ITracePointBuilder with set cookie.

build()

ITracePoint* build()
Builds an instance of ITraceCategory with set parameters from previous methods.

Returns

ITracePoint* ITracePoint with set parameters.
Last modified on October 29, 2026