@Namespace(value="tflite::profiling") @NoOffset @Properties(inherit=tensorflowlite.class) public class RootProfiler extends Profiler
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
DEFAULT, DELEGATE_OPERATOR_INVOKE_EVENT, DELEGATE_PROFILED_OPERATOR_INVOKE_EVENT, GENERAL_RUNTIME_INSTRUMENTATION_EVENT, OPERATOR_INVOKE_EVENT, TELEMETRY_DELEGATE_EVENT, TELEMETRY_DELEGATE_REPORT_SETTINGS, TELEMETRY_EVENT, TELEMETRY_REPORT_SETTINGS
Constructor and Description |
---|
RootProfiler() |
RootProfiler(long size)
Native array allocator.
|
RootProfiler(Pointer p)
Pointer cast constructor.
|
RootProfiler(RootProfiler arg0) |
Modifier and Type | Method and Description |
---|---|
void |
AddEvent(BytePointer tag,
int event_type,
long metric,
long event_metadata1,
long event_metadata2)
Appends an event of type 'event_type' with 'tag' and 'event_metadata'
The
tag , metric , event_metadata1 and event_metadata2 arguments
have different interpretations based on the actual Profiler instance and
the event_type . |
void |
AddEvent(String tag,
int event_type,
long metric,
long event_metadata1,
long event_metadata2) |
void |
AddEventWithData(BytePointer tag,
int event_type,
Pointer data) |
void |
AddEventWithData(String tag,
int event_type,
Pointer data) |
void |
AddProfiler(Profiler profiler)
Adds a profiler to root profiler.
|
int |
BeginEvent(BytePointer tag,
int event_type,
long event_metadata1,
long event_metadata2)
Signals the beginning of an event to all child profilers.
|
int |
BeginEvent(String tag,
int event_type,
long event_metadata1,
long event_metadata2) |
void |
EndEvent(int event_handle)
Signals an end to the specified profile event to all child profilers.
|
void |
EndEvent(int event_handle,
long event_metadata1,
long event_metadata2)
Signals an end to the specified profile event to all child profilers with
'event_metadata's.
|
RootProfiler |
getPointer(long i) |
RootProfiler |
position(long position) |
RootProfiler |
put(RootProfiler arg0) |
void |
RemoveChildProfilers()
Removes all child profilers and releases the child profiler if it's owned
by the root profiler.
|
AddEvent, AddEvent, BeginEvent, BeginEvent
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public RootProfiler(Pointer p)
Pointer(Pointer)
.public RootProfiler(long size)
Pointer.position(long)
.public RootProfiler()
public RootProfiler(@ByRef(value=true) RootProfiler arg0)
public RootProfiler position(long position)
public RootProfiler getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public RootProfiler put(@ByRef(value=true) RootProfiler arg0)
public void AddProfiler(Profiler profiler)
profiler
should not be nullptr or it will be ignored.
Caller must retains the ownership. The lifetime should exceed the
lifetime of the RootProfiler.@Cast(value="uint32_t") public int BeginEvent(@Cast(value="const char*") BytePointer tag, @Cast(value="tflite::profiling::RootProfiler::EventType") int event_type, @Cast(value="int64_t") long event_metadata1, @Cast(value="int64_t") long event_metadata2)
tag
, event_metadata1
and event_metadata2
arguments have
different interpretations based on the actual Profiler instance
and the event_type
.
Returns a handle to the profile event which can be used in a later
EndEvent
call.BeginEvent
in class Profiler
@Cast(value="uint32_t") public int BeginEvent(String tag, @Cast(value="tflite::profiling::RootProfiler::EventType") int event_type, @Cast(value="int64_t") long event_metadata1, @Cast(value="int64_t") long event_metadata2)
BeginEvent
in class Profiler
public void EndEvent(@Cast(value="uint32_t") int event_handle, @Cast(value="int64_t") long event_metadata1, @Cast(value="int64_t") long event_metadata2)
public void EndEvent(@Cast(value="uint32_t") int event_handle)
public void AddEvent(@Cast(value="const char*") BytePointer tag, @Cast(value="tflite::profiling::RootProfiler::EventType") int event_type, @Cast(value="uint64_t") long metric, @Cast(value="int64_t") long event_metadata1, @Cast(value="int64_t") long event_metadata2)
tag
, metric
, event_metadata1
and event_metadata2
arguments
have different interpretations based on the actual Profiler instance and
the event_type
.public void AddEvent(String tag, @Cast(value="tflite::profiling::RootProfiler::EventType") int event_type, @Cast(value="uint64_t") long metric, @Cast(value="int64_t") long event_metadata1, @Cast(value="int64_t") long event_metadata2)
public void AddEventWithData(@Cast(value="const char*") BytePointer tag, @Cast(value="tflite::profiling::RootProfiler::EventType") int event_type, @Const Pointer data)
AddEventWithData
in class Profiler
public void AddEventWithData(String tag, @Cast(value="tflite::profiling::RootProfiler::EventType") int event_type, @Const Pointer data)
AddEventWithData
in class Profiler
public void RemoveChildProfilers()
BeginEvent
calls.Copyright © 2025. All rights reserved.