Package net.minecraft.util.profiling
Part 1/1
ActiveProfiler
- Full name:
net.minecraft.util.profiling.ActiveProfiler - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ActiveProfiler.java - Type:
class - Modifiers:
public - Implements:
ProfileCollector
net.minecraft.util.profiling.ActiveProfiler#ActiveProfiler(LongSupplier,IntSupplier,boolean)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:42 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ActiveProfiler ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: startTimeNano, getRealTime, startTimeTicks, getTickTime, warn. เรียกต่อ: getAsLong(), getAsInt().
Parameters
LongSupplier longSupplierIntSupplier intSupplierboolean bl
ตัวอย่างใช้งาน
LongSupplier longSupplier = ...;
IntSupplier intSupplier = ...;
ActiveProfiler instance = new ActiveProfiler(longSupplier, intSupplier, true);
net.minecraft.util.profiling.ActiveProfiler#endTick()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:62 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ endTick ตาม implementation ของ ActiveProfiler
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: started. เรียกต่อ: error(), startTick(), pop(), isEmpty(), popped(), defer(), demanglePath().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#getChartedPaths()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:171 - Modifiers:
public - Return:
Set<Pair<String, MetricCategory>>
คืออะไร
อ่านค่า Charted Paths
ทำงานยังไง
คืนค่า: this.chartedPaths.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ActiveProfiler instance = ...;
Set<Pair<String, MetricCategory>> result = instance.getChartedPaths();
net.minecraft.util.profiling.ActiveProfiler#getEntry(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:165 - Modifiers:
public - Return:
ActiveProfiler.PathEntry
คืออะไร
อ่านค่า Entry
ทำงานยังไง
เรียกต่อ: get(). คืนค่า: this.entries.get(string).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#getResults()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:160 - Modifiers:
public - Return:
ProfileResults
คืออะไร
อ่านค่า Results
ทำงานยังไง
เรียกต่อ: getAsLong(), getAsInt(). สร้างออบเจ็กต์: FilledProfileResults. คืนค่า: new FilledProfileResults(this.entries, this.startTimeNano, this.startTimeTicks, this.getRealTime.getAsLong(), this.getTickTime.getAsInt()).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#incrementCounter(String,int)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:150 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ ActiveProfiler
ทำงานยังไง
เรียกต่อ: getCurrentEntry(), addTo().
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#incrementCounter(Supplier<String>,int)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:155 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ ActiveProfiler
ทำงานยังไง
เรียกต่อ: getCurrentEntry(), addTo(), get().
Parameters
Supplier<String> supplierint i
ตัวอย่างใช้งาน
ActiveProfiler instance = ...;
Supplier<String> supplier = ...;
instance.incrementCounter(supplier, 0);
net.minecraft.util.profiling.ActiveProfiler#markForCharting(MetricCategory)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:98 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markForCharting ตาม implementation ของ ActiveProfiler
ทำงานยังไง
เรียกต่อ: add(), of().
Parameters
MetricCategory metricCategory
ตัวอย่างใช้งาน
ActiveProfiler instance = ...;
MetricCategory metricCategory = ...;
instance.markForCharting(metricCategory);
net.minecraft.util.profiling.ActiveProfiler#pop()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:103 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pop ตาม implementation ของ ActiveProfiler
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: path, currentEntry. เรียกต่อ: error(), startTick(), isEmpty(), push(), getNanos(), removeLong(), size(), remove().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#popPush(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:130 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ ActiveProfiler
ทำงานยังไง
เรียกต่อ: pop(), push().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#popPush(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:136 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ ActiveProfiler
ทำงานยังไง
เรียกต่อ: pop(), push().
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#push(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:77 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ ActiveProfiler
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: path, currentEntry. เรียกต่อ: error(), startTick(), isEmpty(), add(), getNanos().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#push(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:93 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ ActiveProfiler
ทำงานยังไง
เรียกต่อ: get().
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler#startTick()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:50 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Tick
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: started, path. เรียกต่อ: error(), endTick(), clear(), push().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ActiveProfiler$PathEntry
- Full name:
net.minecraft.util.profiling.ActiveProfiler$PathEntry - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ActiveProfiler.java - Type:
class - Modifiers:
public static - Implements:
ProfilerPathEntry
net.minecraft.util.profiling.ActiveProfiler$PathEntry#getCount()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:193 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Count
ทำงานยังไง
คืนค่า: this.count.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler$PathEntry#getCounters()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:198 - Modifiers:
public - Return:
Object2LongMap<String>
คืออะไร
อ่านค่า Counters
ทำงานยังไง
เรียกต่อ: unmodifiable(). คืนค่า: Object2LongMaps.unmodifiable(this.counters).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler$PathEntry#getDuration()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:183 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Duration
ทำงานยังไง
คืนค่า: this.accumulatedDuration.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ActiveProfiler$PathEntry#getMaxDuration()
- Origin:
common - Source:
net/minecraft/util/profiling/ActiveProfiler.java:188 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Max Duration
ทำงานยังไง
คืนค่า: this.maxDuration.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ContinuousProfiler
- Full name:
net.minecraft.util.profiling.ContinuousProfiler - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ContinuousProfiler.java - Type:
class - Modifiers:
public
net.minecraft.util.profiling.ContinuousProfiler#ContinuousProfiler(LongSupplier,IntSupplier)
- Origin:
common - Source:
net/minecraft/util/profiling/ContinuousProfiler.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ContinuousProfiler ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: realTime, tickCount.
Parameters
LongSupplier longSupplierIntSupplier intSupplier
ตัวอย่างใช้งาน
LongSupplier longSupplier = ...;
IntSupplier intSupplier = ...;
ContinuousProfiler instance = new ContinuousProfiler(longSupplier, intSupplier);
net.minecraft.util.profiling.ContinuousProfiler#disable()
- Origin:
common - Source:
net/minecraft/util/profiling/ContinuousProfiler.java:20 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ disable ตาม implementation ของ ContinuousProfiler
ทำงานยังไง
แก้ state: profiler.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ContinuousProfiler#enable()
- Origin:
common - Source:
net/minecraft/util/profiling/ContinuousProfiler.java:24 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ enable ตาม implementation ของ ContinuousProfiler
ทำงานยังไง
แก้ state: profiler. สร้างออบเจ็กต์: ActiveProfiler.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ContinuousProfiler#getFiller()
- Origin:
common - Source:
net/minecraft/util/profiling/ContinuousProfiler.java:28 - Modifiers:
public - Return:
ProfilerFiller
คืออะไร
อ่านค่า Filler
ทำงานยังไง
คืนค่า: this.profiler.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ContinuousProfiler#getResults()
- Origin:
common - Source:
net/minecraft/util/profiling/ContinuousProfiler.java:32 - Modifiers:
public - Return:
ProfileResults
คืออะไร
อ่านค่า Results
ทำงานยังไง
คืนค่า: this.profiler.getResults().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ContinuousProfiler#isEnabled()
- Origin:
common - Source:
net/minecraft/util/profiling/ContinuousProfiler.java:16 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Enabled
ทำงานยังไง
คืนค่า: this.profiler != InactiveProfiler.INSTANCE.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
EmptyProfileResults
- Full name:
net.minecraft.util.profiling.EmptyProfileResults - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/EmptyProfileResults.java - Type:
class - Modifiers:
public - Implements:
ProfileResults
net.minecraft.util.profiling.EmptyProfileResults#getEndTimeNano()
- Origin:
common - Source:
net/minecraft/util/profiling/EmptyProfileResults.java:33 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า End Time Nano
ทำงานยังไง
คืนค่า: 0L.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.EmptyProfileResults#getEndTimeTicks()
- Origin:
common - Source:
net/minecraft/util/profiling/EmptyProfileResults.java:38 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า End Time Ticks
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.EmptyProfileResults#getProfilerResults()
- Origin:
common - Source:
net/minecraft/util/profiling/EmptyProfileResults.java:43 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Profiler Results
ทำงานยังไง
คืนค่า: "".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.EmptyProfileResults#getStartTimeNano()
- Origin:
common - Source:
net/minecraft/util/profiling/EmptyProfileResults.java:23 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Start Time Nano
ทำงานยังไง
คืนค่า: 0L.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.EmptyProfileResults#getStartTimeTicks()
- Origin:
common - Source:
net/minecraft/util/profiling/EmptyProfileResults.java:28 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Start Time Ticks
ทำงานยังไง
คืนค่า: 0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.EmptyProfileResults#getTimes(String)
- Origin:
common - Source:
net/minecraft/util/profiling/EmptyProfileResults.java:13 - Modifiers:
public - Return:
List<ResultField>
คืออะไร
อ่านค่า Times
ทำงานยังไง
เรียกต่อ: emptyList(). คืนค่า: Collections.emptyList().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.EmptyProfileResults#saveResults(Path)
- Origin:
common - Source:
net/minecraft/util/profiling/EmptyProfileResults.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
บันทึก Results
ทำงานยังไง
คืนค่า: false.
Parameters
Path path
ตัวอย่างใช้งาน
FilledProfileResults
- Full name:
net.minecraft.util.profiling.FilledProfileResults - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/FilledProfileResults.java - Type:
class - Modifiers:
public - Implements:
ProfileResults
net.minecraft.util.profiling.FilledProfileResults#FilledProfileResults(Map<String, ? extends ProfilerPathEntry>,long,int,long,int)
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:61 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ FilledProfileResults ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: entries, startTimeNano, startTimeTicks, endTimeNano, endTimeTicks, tickDuration.
Parameters
Map<String, ? extends ProfilerPathEntry> maplong lint ilong mint j
ตัวอย่างใช้งาน
Map<String, ? extends ProfilerPathEntry> map = ...;
FilledProfileResults instance = new FilledProfileResults(map, 0L, 0, 0L, 0);
net.minecraft.util.profiling.FilledProfileResults#getEndTimeNano()
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:156 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า End Time Nano
ทำงานยังไง
คืนค่า: this.endTimeNano.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.FilledProfileResults#getEndTimeTicks()
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:161 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า End Time Ticks
ทำงานยังไง
คืนค่า: this.endTimeTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.FilledProfileResults#getProfilerResults()
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:207 - Modifiers:
public - Return:
String
คืออะไร
อ่านค่า Profiler Results
ทำงานยังไง
เรียกต่อ: appendProfilerResults(), toString(). สร้างออบเจ็กต์: StringBuilder. คืนค่า: stringBuilder.toString().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.FilledProfileResults#getProfilerResults(long,int)
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:183 - Modifiers:
protected - Return:
String
คืออะไร
อ่านค่า Profiler Results
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: appendHeader(), of(), append(), getCurrentVersion(), getId(), format(), appendProfilerResults(), getCounterValues(). สร้างออบเจ็กต์: StringBuilder. คืนค่า: stringBuilder.toString().
Parameters
long lint i
ตัวอย่างใช้งาน
@Override
protected String getProfilerResults(long l, int i) {
return super.getProfilerResults(l, i);
}
net.minecraft.util.profiling.FilledProfileResults#getStartTimeNano()
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:146 - Modifiers:
public - Return:
long
คืออะไร
อ่านค่า Start Time Nano
ทำงานยังไง
คืนค่า: this.startTimeNano.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.FilledProfileResults#getStartTimeTicks()
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:151 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Start Time Ticks
ทำงานยังไง
คืนค่า: this.startTimeTicks.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.FilledProfileResults#getTickDuration()
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:290 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Tick Duration
ทำงานยังไง
คืนค่า: this.tickDuration.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.FilledProfileResults#getTimes(String)
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:75 - Modifiers:
public - Return:
List<ResultField>
คืออะไร
อ่านค่า Times
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getEntry(), getDuration(), getCount(), newArrayList(), isEmpty(), keySet(), isDirectChild(), substring(). สร้างออบเจ็กต์: ResultField. คืนค่า: list.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.FilledProfileResults#saveResults(Path)
- Origin:
common - Source:
net/minecraft/util/profiling/FilledProfileResults.java:166 - Modifiers:
public - Return:
boolean
คืออะไร
บันทึก Results
ทำงานยังไง
มีการจัดการ exception. เรียกต่อ: createDirectories(), getParent(), newBufferedWriter(), write(), getProfilerResults(), getNanoDuration(), getTickDuration(), error(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Path path
ตัวอย่างใช้งาน
InactiveProfiler
- Full name:
net.minecraft.util.profiling.InactiveProfiler - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/InactiveProfiler.java - Type:
class - Modifiers:
public - Implements:
ProfileCollector
net.minecraft.util.profiling.InactiveProfiler#endTick()
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:20 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ endTick ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#getChartedPaths()
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:77 - Modifiers:
public - Return:
Set<Pair<String, MetricCategory>>
คืออะไร
อ่านค่า Charted Paths
ทำงานยังไง
เรียกต่อ: of(). คืนค่า: ImmutableSet.of().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
InactiveProfiler instance = ...;
Set<Pair<String, MetricCategory>> result = instance.getChartedPaths();
net.minecraft.util.profiling.InactiveProfiler#getEntry(String)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:71 - Modifiers:
public - Return:
ActiveProfiler.PathEntry
คืออะไร
อ่านค่า Entry
ทำงานยังไง
คืนค่า: null.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#getResults()
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:66 - Modifiers:
public - Return:
ProfileResults
คืออะไร
อ่านค่า Results
ทำงานยังไง
คืนค่า: EmptyProfileResults.EMPTY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#incrementCounter(String,int)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:58 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#incrementCounter(Supplier<String>,int)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:62 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Supplier<String> supplierint i
ตัวอย่างใช้งาน
InactiveProfiler instance = ...;
Supplier<String> supplier = ...;
instance.incrementCounter(supplier, 0);
net.minecraft.util.profiling.InactiveProfiler#markForCharting(MetricCategory)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:32 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markForCharting ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
MetricCategory metricCategory
ตัวอย่างใช้งาน
InactiveProfiler instance = ...;
MetricCategory metricCategory = ...;
instance.markForCharting(metricCategory);
net.minecraft.util.profiling.InactiveProfiler#pop()
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:36 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pop ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#popPush(String)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:40 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#popPush(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:44 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#push(String)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:24 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#push(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:28 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ InactiveProfiler
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#startTick()
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:16 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Tick
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#zone(String)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:48 - Modifiers:
public - Return:
Zone
คืออะไร
ดำเนินการ zone ตาม implementation ของ InactiveProfiler
ทำงานยังไง
คืนค่า: Zone.INACTIVE.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.InactiveProfiler#zone(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/InactiveProfiler.java:53 - Modifiers:
public - Return:
Zone
คืออะไร
ดำเนินการ zone ตาม implementation ของ InactiveProfiler
ทำงานยังไง
คืนค่า: Zone.INACTIVE.
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
InactiveProfiler instance = ...;
Supplier<String> supplier = ...;
Zone result = instance.zone(supplier);
ProfileCollector
- Full name:
net.minecraft.util.profiling.ProfileCollector - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ProfileCollector.java - Type:
interface - Modifiers:
public - Implements:
ProfilerFiller
net.minecraft.util.profiling.ProfileCollector#getChartedPaths()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileCollector.java:14 - Modifiers: ``
- Return:
Set<Pair<String, MetricCategory>>
คืออะไร
อ่านค่า Charted Paths
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ProfileCollector instance = ...;
Set<Pair<String, MetricCategory>> result = instance.getChartedPaths();
net.minecraft.util.profiling.ProfileCollector#getEntry(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileCollector.java:11 - Modifiers: ``
- Return:
ActiveProfiler.PathEntry
คืออะไร
อ่านค่า Entry
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileCollector#getResults()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileCollector.java:9 - Modifiers: ``
- Return:
ProfileResults
คืออะไร
อ่านค่า Results
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Profiler
- Full name:
net.minecraft.util.profiling.Profiler - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/Profiler.java - Type:
class - Modifiers:
public final
net.minecraft.util.profiling.Profiler#get()
- Origin:
common - Source:
net/minecraft/util/profiling/Profiler.java:46 - Modifiers:
public static - Return:
ProfilerFiller
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: getDefaultFiller(), requireNonNullElseGet(). คืนค่า: ACTIVE_COUNT.get() == 0 ? getDefaultFiller() : Objects.requireNonNullElseGet(ACTIVE.get(), Profiler::getDefaultFiller).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.Profiler#use(ProfilerFiller)
- Origin:
common - Source:
net/minecraft/util/profiling/Profiler.java:15 - Modifiers:
public static - Return:
Profiler.Scope
คืออะไร
ใช้งาน use
ทำงานยังไง
เรียกต่อ: startUsing(). คืนค่า: Profiler::stopUsing.
Parameters
ProfilerFiller profilerFiller
ตัวอย่างใช้งาน
Profiler$Scope
- Full name:
net.minecraft.util.profiling.Profiler$Scope - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/Profiler.java - Type:
interface - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.util.profiling.Profiler$Scope#close()
- Origin:
common - Source:
net/minecraft/util/profiling/Profiler.java:55 - Modifiers: ``
- Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ProfileResults
- Full name:
net.minecraft.util.profiling.ProfileResults - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ProfileResults.java - Type:
interface - Modifiers:
public
net.minecraft.util.profiling.ProfileResults#demanglePath(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:31 - Modifiers:
static - Return:
String
คืออะไร
ดำเนินการ demanglePath ตาม implementation ของ ProfileResults
ทำงานยังไง
เรียกต่อ: replace(). คืนค่า: string.replace('\u001e', '.').
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getEndTimeNano()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:17 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า End Time Nano
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getEndTimeTicks()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:19 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า End Time Ticks
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getNanoDuration()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:21 - Modifiers:
default - Return:
long
คืออะไร
อ่านค่า Nano Duration
ทำงานยังไง
เรียกต่อ: getEndTimeNano(), getStartTimeNano(). คืนค่า: this.getEndTimeNano() - this.getStartTimeNano().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getProfilerResults()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:29 - Modifiers: ``
- Return:
String
คืออะไร
อ่านค่า Profiler Results
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getStartTimeNano()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:13 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า Start Time Nano
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getStartTimeTicks()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:15 - Modifiers: ``
- Return:
int
คืออะไร
อ่านค่า Start Time Ticks
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getTickDuration()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:25 - Modifiers:
default - Return:
int
คืออะไร
อ่านค่า Tick Duration
ทำงานยังไง
เรียกต่อ: getEndTimeTicks(), getStartTimeTicks(). คืนค่า: this.getEndTimeTicks() - this.getStartTimeTicks().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#getTimes(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:9 - Modifiers: ``
- Return:
List<ResultField>
คืออะไร
อ่านค่า Times
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfileResults#saveResults(Path)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfileResults.java:11 - Modifiers: ``
- Return:
boolean
คืออะไร
บันทึก Results
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Path path
ตัวอย่างใช้งาน
ProfilerFiller
- Full name:
net.minecraft.util.profiling.ProfilerFiller - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ProfilerFiller.java - Type:
interface - Modifiers:
public
net.minecraft.util.profiling.ProfilerFiller#addZoneText(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:23 - Modifiers:
default - Return:
void
คืออะไร
เพิ่ม Zone Text
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#addZoneValue(long)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:26 - Modifiers:
default - Return:
void
คืออะไร
เพิ่ม Zone Value
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#combine(ProfilerFiller,ProfilerFiller)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:56 - Modifiers:
static - Return:
ProfilerFiller
คืออะไร
ดำเนินการ combine ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: CombinedProfileFiller(). สร้างออบเจ็กต์: ProfilerFiller.CombinedProfileFiller. มีจุด return อย่างน้อย 2 จุด.
Parameters
ProfilerFiller profilerFillerProfilerFiller profilerFiller2
ตัวอย่างใช้งาน
ProfilerFiller profilerFiller = ...;
ProfilerFiller profilerFiller2 = ...;
ProfilerFiller result = ProfilerFiller.combine(profilerFiller, profilerFiller2);
net.minecraft.util.profiling.ProfilerFiller#endTick()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:11 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ endTick ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#incrementCounter(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:44 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#incrementCounter(String,int)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:48 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#incrementCounter(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:50 - Modifiers:
default - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
ProfilerFiller instance = ...;
Supplier<String> supplier = ...;
instance.incrementCounter(supplier);
net.minecraft.util.profiling.ProfilerFiller#incrementCounter(Supplier<String>,int)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:54 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Supplier<String> supplierint i
ตัวอย่างใช้งาน
ProfilerFiller instance = ...;
Supplier<String> supplier = ...;
instance.incrementCounter(supplier, 0);
net.minecraft.util.profiling.ProfilerFiller#markForCharting(MetricCategory)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:42 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ markForCharting ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
MetricCategory metricCategory
ตัวอย่างใช้งาน
ProfilerFiller instance = ...;
MetricCategory metricCategory = ...;
instance.markForCharting(metricCategory);
net.minecraft.util.profiling.ProfilerFiller#pop()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:17 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ pop ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#popPush(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:19 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#popPush(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:21 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#push(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:13 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#push(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:15 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ ProfilerFiller
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#setZoneColor(int)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:29 - Modifiers:
default - Return:
void
คืออะไร
กำหนดค่า Zone Color
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#startTick()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:9 - Modifiers: ``
- Return:
void
คืออะไร
เริ่ม Tick
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#zone(String)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:32 - Modifiers:
default - Return:
Zone
คืออะไร
ดำเนินการ zone ตาม implementation ของ ProfilerFiller
ทำงานยังไง
เรียกต่อ: push(). สร้างออบเจ็กต์: Zone. คืนค่า: new Zone(this).
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerFiller#zone(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerFiller.java:37 - Modifiers:
default - Return:
Zone
คืออะไร
ดำเนินการ zone ตาม implementation ของ ProfilerFiller
ทำงานยังไง
เรียกต่อ: push(). สร้างออบเจ็กต์: Zone. คืนค่า: new Zone(this).
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
ProfilerFiller instance = ...;
Supplier<String> supplier = ...;
Zone result = instance.zone(supplier);
ProfilerPathEntry
- Full name:
net.minecraft.util.profiling.ProfilerPathEntry - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ProfilerPathEntry.java - Type:
interface - Modifiers:
public
net.minecraft.util.profiling.ProfilerPathEntry#getCount()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerPathEntry.java:10 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า Count
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerPathEntry#getCounters()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerPathEntry.java:12 - Modifiers: ``
- Return:
Object2LongMap<String>
คืออะไร
อ่านค่า Counters
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerPathEntry#getDuration()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerPathEntry.java:6 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า Duration
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ProfilerPathEntry#getMaxDuration()
- Origin:
common - Source:
net/minecraft/util/profiling/ProfilerPathEntry.java:8 - Modifiers: ``
- Return:
long
คืออะไร
อ่านค่า Max Duration
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
ResultField
- Full name:
net.minecraft.util.profiling.ResultField - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/ResultField.java - Type:
class - Modifiers:
public final - Implements:
Comparable<ResultField>
net.minecraft.util.profiling.ResultField#compareTo(ResultField)
- Origin:
common - Source:
net/minecraft/util/profiling/ResultField.java:16 - Modifiers:
public - Return:
int
คืออะไร
เปรียบเทียบ To
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. มีจุด return อย่างน้อย 2 จุด.
Parameters
ResultField resultField
ตัวอย่างใช้งาน
ResultField instance = ...;
ResultField resultField = ...;
int result = instance.compareTo(resultField);
net.minecraft.util.profiling.ResultField#getColor()
- Origin:
common - Source:
net/minecraft/util/profiling/ResultField.java:24 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Color
ทำงานยังไง
เรียกต่อ: hashCode(). คืนค่า: (this.name.hashCode() & 11184810) + 4473924.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.ResultField#ResultField(String,double,double,long)
- Origin:
common - Source:
net/minecraft/util/profiling/ResultField.java:9 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ResultField ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: name, percentage, globalPercentage, count.
Parameters
String stringdouble ddouble elong l
ตัวอย่างใช้งาน
SingleTickProfiler
- Full name:
net.minecraft.util.profiling.SingleTickProfiler - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/SingleTickProfiler.java - Type:
class - Modifiers:
public
net.minecraft.util.profiling.SingleTickProfiler#createTickProfiler(String)
- Origin:
common - Source:
net/minecraft/util/profiling/SingleTickProfiler.java:42 - Modifiers:
public static - Return:
SingleTickProfiler
คืออะไร
สร้าง Tick Profiler
ทำงานยังไง
คืนค่า: null.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.SingleTickProfiler#decorateFiller(ProfilerFiller,SingleTickProfiler)
- Origin:
common - Source:
net/minecraft/util/profiling/SingleTickProfiler.java:47 - Modifiers:
public static - Return:
ProfilerFiller
คืออะไร
ดำเนินการ decorateFiller ตาม implementation ของ SingleTickProfiler
ทำงานยังไง
เรียกต่อ: combine(), startTick(). คืนค่า: singleTickProfiler != null ? ProfilerFiller.combine(singleTickProfiler.startTick(), profilerFiller) : profilerFiller.
Parameters
ProfilerFiller profilerFillerSingleTickProfiler singleTickProfiler
ตัวอย่างใช้งาน
ProfilerFiller profilerFiller = ...;
SingleTickProfiler singleTickProfiler = ...;
ProfilerFiller result = SingleTickProfiler.decorateFiller(profilerFiller, singleTickProfiler);
net.minecraft.util.profiling.SingleTickProfiler#endTick()
- Origin:
common - Source:
net/minecraft/util/profiling/SingleTickProfiler.java:30 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ endTick ตาม implementation ของ SingleTickProfiler
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: profiler. เรียกต่อ: getResults(), getNanoDuration(), getFilenameFormattedDateTime(), saveResults(), toPath(), info(), getAbsolutePath(). สร้างออบเจ็กต์: File.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.SingleTickProfiler#SingleTickProfiler(LongSupplier,String,long)
- Origin:
common - Source:
net/minecraft/util/profiling/SingleTickProfiler.java:18 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SingleTickProfiler ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: realTime, location, saveThreshold. สร้างออบเจ็กต์: File.
Parameters
LongSupplier longSupplierString stringlong l
ตัวอย่างใช้งาน
LongSupplier longSupplier = ...;
SingleTickProfiler instance = new SingleTickProfiler(longSupplier, "value", 0L);
net.minecraft.util.profiling.SingleTickProfiler#startTick()
- Origin:
common - Source:
net/minecraft/util/profiling/SingleTickProfiler.java:24 - Modifiers:
public - Return:
ProfilerFiller
คืออะไร
เริ่ม Tick
ทำงานยังไง
แก้ state: profiler, tick. สร้างออบเจ็กต์: ActiveProfiler. คืนค่า: this.profiler.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
TracyZoneFiller
- Full name:
net.minecraft.util.profiling.TracyZoneFiller - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/TracyZoneFiller.java - Type:
class - Modifiers:
public - Implements:
ProfilerFiller
net.minecraft.util.profiling.TracyZoneFiller#addZoneText(String)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:106 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Zone Text
ทำงานยังไง
เรียกต่อ: activeZone(), addText().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#addZoneValue(long)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:111 - Modifiers:
public - Return:
void
คืออะไร
เพิ่ม Zone Value
ทำงานยังไง
เรียกต่อ: activeZone(), addValue().
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#endTick()
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:30 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ endTick ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
มีการวนลูป. เรียกต่อ: values(), set().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#incrementCounter(String,int)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:92 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
เรียกต่อ: computeIfAbsent(), PlotAndValue(), add(). สร้างออบเจ็กต์: TracyZoneFiller.PlotAndValue.
Parameters
String stringint i
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#incrementCounter(Supplier<String>,int)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:97 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ incrementCounter ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
เรียกต่อ: get().
Parameters
Supplier<String> supplierint i
ตัวอย่างใช้งาน
TracyZoneFiller instance = ...;
Supplier<String> supplier = ...;
instance.incrementCounter(supplier, 0);
net.minecraft.util.profiling.TracyZoneFiller#markForCharting(MetricCategory)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:88 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ markForCharting ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
MetricCategory metricCategory
ตัวอย่างใช้งาน
TracyZoneFiller instance = ...;
MetricCategory metricCategory = ...;
instance.markForCharting(metricCategory);
net.minecraft.util.profiling.TracyZoneFiller#pop()
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:66 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ pop ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), error(), push(), removeLast(), close().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#popPush(String)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:76 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
เรียกต่อ: pop(), push().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#popPush(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:82 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ popPush ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
เรียกต่อ: pop(), push(), get().
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#push(String)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:37 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: walk(), filter(), getDeclaringClass(), findFirst(), isPresent(), get(), getMethodName(), getFileName().
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#push(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:61 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ push ตาม implementation ของ TracyZoneFiller
ทำงานยังไง
เรียกต่อ: get().
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#setZoneColor(int)
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:116 - Modifiers:
public - Return:
void
คืออะไร
กำหนดค่า Zone Color
ทำงานยังไง
เรียกต่อ: activeZone(), setColor().
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.util.profiling.TracyZoneFiller#startTick()
- Origin:
common - Source:
net/minecraft/util/profiling/TracyZoneFiller.java:26 - Modifiers:
public - Return:
void
คืออะไร
เริ่ม Tick
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Zone
- Full name:
net.minecraft.util.profiling.Zone - Package:
net.minecraft.util.profiling - Source:
common—net/minecraft/util/profiling/Zone.java - Type:
class - Modifiers:
public - Implements:
AutoCloseable
net.minecraft.util.profiling.Zone#addText(String)
- Origin:
common - Source:
net/minecraft/util/profiling/Zone.java:15 - Modifiers:
public - Return:
Zone
คืออะไร
เพิ่ม Text
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addZoneText(). คืนค่า: this.
Parameters
String string
ตัวอย่างใช้งาน
net.minecraft.util.profiling.Zone#addText(Supplier<String>)
- Origin:
common - Source:
net/minecraft/util/profiling/Zone.java:23 - Modifiers:
public - Return:
Zone
คืออะไร
เพิ่ม Text
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addZoneText(), get(). คืนค่า: this.
Parameters
Supplier<String> supplier
ตัวอย่างใช้งาน
net.minecraft.util.profiling.Zone#addValue(long)
- Origin:
common - Source:
net/minecraft/util/profiling/Zone.java:31 - Modifiers:
public - Return:
Zone
คืออะไร
เพิ่ม Value
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: addZoneValue(). คืนค่า: this.
Parameters
long l
ตัวอย่างใช้งาน
net.minecraft.util.profiling.Zone#close()
- Origin:
common - Source:
net/minecraft/util/profiling/Zone.java:47 - Modifiers:
public - Return:
void
คืออะไร
ปิด close
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: pop().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.util.profiling.Zone#setColor(int)
- Origin:
common - Source:
net/minecraft/util/profiling/Zone.java:39 - Modifiers:
public - Return:
Zone
คืออะไร
กำหนดค่า Color
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: setZoneColor(). คืนค่า: this.
Parameters
int i