lib/slowlog.js
function get(amount) {
  amount = amount !== undefined && amount >= 0 ? amount : 10;
  amount = Math.min(amount, this._records.length);
  return this._records.slice(0, amount);
}
function get(amount) {
  amount = amount !== undefined && amount >= 0 ? amount : 10;
  amount = Math.min(amount, this._records.length);
  return this._records.slice(0, amount);
}
function get ( amount ) { amount = amount !== undefined && amount >= 0 ? amount : 10 ; amount = Math . min ( amount , this . _records . length ) ; return this . _records . slice ( 0 , amount ) ; }
Get a list of slowlog records.

Suitable for invoking from SLOWLOG GET.
Get a list of slowlog records .