@Path(value="/pprof") public class CpuProfileResource extends Object
| Constructor and Description |
|---|
CpuProfileResource() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
contention(Integer duration,
Integer frequency) |
protected byte[] |
doProfile(int duration,
int frequency,
Thread.State state) |
byte[] |
profile(Integer duration,
Integer frequency) |
@Produces(value="pprof/raw")
@GET
@Path(value="profile")
public byte[] profile(@QueryParam(value="duration") @DefaultValue(value="10")
Integer duration,
@QueryParam(value="frequency") @DefaultValue(value="100")
Integer frequency)
throws IOException
IOException@Produces(value="pprof/raw")
@GET
@Path(value="contention")
public byte[] contention(@QueryParam(value="duration") @DefaultValue(value="10")
Integer duration,
@QueryParam(value="frequency") @DefaultValue(value="100")
Integer frequency)
throws IOException
IOExceptionprotected byte[] doProfile(int duration,
int frequency,
Thread.State state)
throws IOException
IOExceptionCopyright © 2014–2019 Philip Helger. All rights reserved.