InactiveProfiler.java
net.minecraft.util.profiling.InactiveProfiler
信息
- 全限定名:net.minecraft.util.profiling.InactiveProfiler
- 类型:public class
- 包:net.minecraft.util.profiling
- 源码路径:src/main/java/net/minecraft/util/profiling/InactiveProfiler.java
- 起始行号:L10
- 实现:ProfileCollector
- 职责:
TODO
字段/常量
INSTANCE- 类型:
InactiveProfiler - 修饰符:
public static final - 源码定位:
L11 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
private InactiveProfiler() @ L13
- 构造器名:InactiveProfiler
- 源码定位:L13
- 修饰符:private
参数:
- 无
说明:
TODO
方法
下面的方法块按源码顺序生成。
public void startTick() @ L16
- 方法名:startTick
- 源码定位:L16
- 返回类型:void
- 修饰符:public
参数:
- 无
说明:
TODO
public void endTick() @ L20
- 方法名:endTick
- 源码定位:L20
- 返回类型:void
- 修饰符:public
参数:
- 无
说明:
TODO
public void push(String name) @ L24
- 方法名:push
- 源码定位:L24
- 返回类型:void
- 修饰符:public
参数:
- name: String
说明:
TODO
public void push(Supplier<String> name) @ L28
- 方法名:push
- 源码定位:L28
- 返回类型:void
- 修饰符:public
参数:
- name: Supplier
说明:
TODO
public void markForCharting(MetricCategory category) @ L32
- 方法名:markForCharting
- 源码定位:L32
- 返回类型:void
- 修饰符:public
参数:
- category: MetricCategory
说明:
TODO
public void pop() @ L36
- 方法名:pop
- 源码定位:L36
- 返回类型:void
- 修饰符:public
参数:
- 无
说明:
TODO
public void popPush(String name) @ L40
- 方法名:popPush
- 源码定位:L40
- 返回类型:void
- 修饰符:public
参数:
- name: String
说明:
TODO
public void popPush(Supplier<String> name) @ L44
- 方法名:popPush
- 源码定位:L44
- 返回类型:void
- 修饰符:public
参数:
- name: Supplier
说明:
TODO
public Zone zone(String name) @ L48
- 方法名:zone
- 源码定位:L48
- 返回类型:Zone
- 修饰符:public
参数:
- name: String
说明:
TODO
public Zone zone(Supplier<String> name) @ L53
- 方法名:zone
- 源码定位:L53
- 返回类型:Zone
- 修饰符:public
参数:
- name: Supplier
说明:
TODO
public void incrementCounter(String name, int amount) @ L58
- 方法名:incrementCounter
- 源码定位:L58
- 返回类型:void
- 修饰符:public
参数:
- name: String
- amount: int
说明:
TODO
public void incrementCounter(Supplier<String> name, int amount) @ L62
- 方法名:incrementCounter
- 源码定位:L62
- 返回类型:void
- 修饰符:public
参数:
- name: Supplier
- amount: int
说明:
TODO
public ProfileResults getResults() @ L66
- 方法名:getResults
- 源码定位:L66
- 返回类型:ProfileResults
- 修饰符:public
参数:
- 无
说明:
TODO
public ActiveProfiler.PathEntry getEntry(String path) @ L71
- 方法名:getEntry
- 源码定位:L71
- 返回类型:ActiveProfiler.PathEntry
- 修饰符:public
参数:
- path: String
说明:
TODO
public Set<Pair<String,MetricCategory>> getChartedPaths() @ L76
- 方法名:getChartedPaths
- 源码定位:L76
- 返回类型:Set<Pair<String,MetricCategory>>
- 修饰符:public
参数:
- 无
说明:
TODO
代码
public class InactiveProfiler implements ProfileCollector {
public static final InactiveProfiler INSTANCE = new InactiveProfiler();
private InactiveProfiler() {
}
@Override
public void startTick() {
}
@Override
public void endTick() {
}
@Override
public void push(String name) {
}
@Override
public void push(Supplier<String> name) {
}
@Override
public void markForCharting(MetricCategory category) {
}
@Override
public void pop() {
}
@Override
public void popPush(String name) {
}
@Override
public void popPush(Supplier<String> name) {
}
@Override
public Zone zone(String name) {
return Zone.INACTIVE;
}
@Override
public Zone zone(Supplier<String> name) {
return Zone.INACTIVE;
}
@Override
public void incrementCounter(String name, int amount) {
}
@Override
public void incrementCounter(Supplier<String> name, int amount) {
}
@Override
public ProfileResults getResults() {
return EmptyProfileResults.EMPTY;
}
@Override
public ActiveProfiler.@Nullable PathEntry getEntry(String path) {
return null;
}
@Override
public Set<Pair<String, MetricCategory>> getChartedPaths() {
return ImmutableSet.of();
}
}引用的其他类
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
实现
- 引用位置:
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
参数/返回值
- 引用位置: