Skip to content

Instantly share code, notes, and snippets.

Juliano Viana jjviana

Block or report user

Report or block jjviana

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View request.txt
Request: 0
Start Time: Thu Aug 02 09:40:24 BRT 2012
End time: Thu Aug 02 09:41:07 BRT 2012
Thread id: 15
Sampling start time: Thu Aug 02 09:40:30 BRT 2012
Sampling end time: Thu Aug 02 09:41:07 BRT 2012
# Contents of Request.toString() goes here
@jjviana
jjviana / MyApp.java
Created Aug 2, 2012
Request boundary example
View MyApp.java
public void processRequest(Integer param1,String param2) {
MyRequest request=new MyRequest(param1, param2);
requestManager.requestStarting(request);
// Process the request as usual...
requestManager.requestFinished(request);
@jjviana
jjviana / MyRequest.java
Created Aug 2, 2012
Samplr custom Request
View MyRequest.java
import com.logicstyle.samplr.Request;
public class MyRequest extends Request {
private Integer requestParam1;
private String requestParam2;
public MyRequest(Integer requestParam1, String requestParam2) {
@jjviana
jjviana / gist:3230291
Created Aug 1, 2012
Samplr - Request Manager
View gist:3230291
RequestManager requestManager=new RequestManager()
.withRequestProcessor(new ThreadSamplingRequestProcessor()
.withRequestLengthSamplingThreshold(60000L))
.withRequestProcessor(new RequestRecorderRequestProcessor())
.withResultsProcessor(new FileResultsArchiver()
.withOutputDirectory(new File("/home/glassfish/samplr-output")))
.withRequestTimeout(300000L);
You can’t perform that action at this time.