Skip to content

Instantly share code, notes, and snippets.

@tyoshikawa1106
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyoshikawa1106/e28b602f82582cf119ae to your computer and use it in GitHub Desktop.
Save tyoshikawa1106/e28b602f82582cf119ae to your computer and use it in GitHub Desktop.
Limits Class Demo
System.debug('limits.getAggregateQueries() = ' + limits.getAggregateQueries());
System.debug('limits.getLimitAggregateQueries() = ' + limits.getLimitAggregateQueries());
System.debug('limits.getCallouts() = ' + limits.getCallouts());
System.debug('limits.getLimitCallouts() = ' + limits.getLimitCallouts());
//System.debug('limits.getAggregateQueries() = ' + limits.getChildRelationshipsDescribes());
//System.debug('limits.getLimitChildRelationshipsDescribes() = ' + limits.getLimitChildRelationshipsDescribes());
System.debug('limits.getCpuTime() = ' + limits.getCpuTime());
System.debug('limits.getLimitCpuTime() = ' + limits.getLimitCpuTime());
System.debug('limits.getDMLRows() = ' + limits.getDMLRows());
System.debug('limits.getLimitDMLRows() = ' + limits.getLimitDMLRows());
System.debug('limits.getDMLStatements() = ' + limits.getDMLStatements());
System.debug('limits.getLimitDMLStatements() = ' + limits.getLimitDMLStatements());
System.debug('limits.getEmailInvocations() = ' + limits.getEmailInvocations());
System.debug('limits.getLimitEmailInvocations() = ' + limits.getLimitEmailInvocations());
//System.debug('limits.getFieldsDescribes() = ' + limits.getFieldsDescribes());
//System.debug('limits.getLimitFieldsDescribes() = ' + limits.getLimitFieldsDescribes());
//System.debug('limits.getFieldSetsDescribes() = ' + limits.getFieldSetsDescribes());
//System.debug('limits.getLimitFieldSetsDescribes() = ' + limits.getLimitFieldSetsDescribes());
System.debug('limits.getFindSimilarCalls() = ' + limits.getFindSimilarCalls());
System.debug('limits.getLimitFindSimilarCalls() = ' + limits.getLimitFindSimilarCalls());
System.debug('limits.getFutureCalls() = ' + limits.getFutureCalls());
System.debug('limits.getLimitFutureCalls() = ' + limits.getLimitFutureCalls());
System.debug('limits.getHeapSize() = ' + limits.getHeapSize());
System.debug('limits.getLimitHeapSize() = ' + limits.getLimitHeapSize());
System.debug('limits.getLimitMobilePushApexCalls() = ' + limits.getLimitMobilePushApexCalls());
//System.debug('limits.getPicklistDescribes() = ' + limits.getPicklistDescribes());
//System.debug('limits.getLimitPicklistDescribes() = ' + limits.getLimitPicklistDescribes());
System.debug('limits.getQueries() = ' + limits.getQueries());
System.debug('limits.getLimitQueries() = ' + limits.getLimitQueries());
System.debug('limits.getQueryLocatorRows() = ' + limits.getQueryLocatorRows());
System.debug('limits.getLimitQueryLocatorRows() = ' + limits.getLimitQueryLocatorRows());
System.debug('limits.getQueryRows() = ' + limits.getQueryRows());
System.debug('limits.getLimitQueryRows() = ' + limits.getLimitQueryRows());
System.debug('limits.getQueueableJobs() = ' + limits.getQueueableJobs());
System.debug('limits.getLimitQueueableJobs() = ' + limits.getLimitQueueableJobs());
//System.debug('limits.getRecordTypesDescribes() = ' + limits.getRecordTypesDescribes());
//System.debug('limits.getLimitRecordTypesDescribes() = ' + limits.getLimitRecordTypesDescribes());
System.debug('limits.getRunAs() = ' + limits.getRunAs());
System.debug('limits.getLimitRunAs() = ' + limits.getLimitRunAs());
System.debug('limits.getSavepointRollbacks() = ' + limits.getSavepointRollbacks());
System.debug('limits.getLimitSavepointRollbacks() = ' + limits.getLimitSavepointRollbacks());
System.debug('limits.getSavepoints() = ' + limits.getSavepoints());
System.debug('limits.getLimitSavepoints() = ' + limits.getLimitSavepoints());
//System.debug('limits.getScriptStatements() = ' + limits.getScriptStatements());
//System.debug('limits.getLimitScriptStatements() = ' + limits.getLimitScriptStatements());
System.debug('limits.getSoslQueries() = ' + limits.getSoslQueries());
System.debug('limits.getLimitSoslQueries() = ' + limits.getLimitSoslQueries());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment