Skip to content

Instantly share code, notes, and snippets.

@gregw
Last active September 7, 2016 01:58
Show Gist options
  • Save gregw/c16d2909ec1e8f84a368e52bf6a33958 to your computer and use it in GitHub Desktop.
Save gregw/c16d2909ec1e8f84a368e52bf6a33958 to your computer and use it in GitHub Desktop.
Profile example
LoadGeneratorProfile sample =
new LoadGeneratorProfile.Builder()
.resource("/index.html")
.then()
.resourceGroup(new ResourceGroup.Builder()
.resourceGroup(new ResourceGroup.Builder()
.resource( "/style.css" )
.then()
.resourceGroup(new ResourceGroup.Builder()
.resource( "/logo.gif" )
.resource( "/spacer.png" )
.build()))
.resource( "/fancy.css" )
.resourceGroup(new ResourceGroup.Builder()
.resource( "/script.js" )
.then()
.resourceGroup(new ResourceGroup.Builder()
.resource( "/library.js" )
.resource( "/morestuff.js" )
.build()))
.resource( "/anotherScript.js" )
.resource( "/iframeContents.html" )
.resource( "/moreIframeContents.html" )
.resource( "/favicon.ico" )
.build())
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment