lib/third_party/tracing/extras/importer/linux_perf/mali_parser.js
function(line) {
      // Matches Mali perf events with thread info
      var lineREWithThread =
          /^\s*\(([\w\-]*)\)\s*(\w+):\s*([\w\\\/\.\-]*@\d*):?\s*(.*)$/;
      if (lineREWithThread.test(line))
        return lineREWithThread;

      // Matches old-style Mali perf events
      var lineRENoThread = /^s*()(\w+):\s*([\w\\\/.\-]*):?\s*(.*)$/;
      if (lineRENoThread.test(line))
        return lineRENoThread;
      return null;
    }
function(line) {
      // Matches Mali perf events with thread info
      var lineREWithThread =
          /^\s*\(([\w\-]*)\)\s*(\w+):\s*([\w\\\/\.\-]*@\d*):?\s*(.*)$/;
      if (lineREWithThread.test(line))
        return lineREWithThread;

      // Matches old-style Mali perf events
      var lineRENoThread = /^s*()(\w+):\s*([\w\\\/.\-]*):?\s*(.*)$/;
      if (lineRENoThread.test(line))
        return lineRENoThread;
      return null;
    }
function ( line ) { // Matches Mali perf events with thread info var lineREWithThread = / ^\s*\(([\w\-]*)\)\s*(\w+):\s*([\w\\\/\.\-]*@\d*):?\s*(.*)$ / ; if ( lineREWithThread . test ( line ) ) return lineREWithThread ; // Matches old-style Mali perf events var lineRENoThread = / ^s*()(\w+):\s*([\w\\\/.\-]*):?\s*(.*)$ / ; if ( lineRENoThread . test ( line ) ) return lineRENoThread ; return null ; }
Deduce the format of Mali perf events.

@return {RegExp} the regular expression for parsing data when the format
is recognized; otherwise null.
Deduce the format of Mali perf events .