lib/third_party/tracing/extras/importer/linux_perf/i915_parser.js
function I915Parser(importer) {
    Parser.call(this, importer);

    importer.registerEventHandler('i915_gem_object_create',
        I915Parser.prototype.gemObjectCreateEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_bind',
        I915Parser.prototype.gemObjectBindEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_unbind',
        I915Parser.prototype.gemObjectBindEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_change_domain',
        I915Parser.prototype.gemObjectChangeDomainEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_pread',
        I915Parser.prototype.gemObjectPreadWriteEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_pwrite',
        I915Parser.prototype.gemObjectPreadWriteEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_fault',
        I915Parser.prototype.gemObjectFaultEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_clflush',
        // NB: reuse destroy handler
        I915Parser.prototype.gemObjectDestroyEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_destroy',
        I915Parser.prototype.gemObjectDestroyEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_dispatch',
        I915Parser.prototype.gemRingDispatchEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_flush',
        I915Parser.prototype.gemRingFlushEvent.bind(this));
    importer.registerEventHandler('i915_gem_request',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_add',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_complete',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_retire',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_wait_begin',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_wait_end',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_wait_begin',
        I915Parser.prototype.gemRingWaitEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_wait_end',
        I915Parser.prototype.gemRingWaitEvent.bind(this));
    importer.registerEventHandler('i915_reg_rw',
        I915Parser.prototype.regRWEvent.bind(this));
    importer.registerEventHandler('i915_flip_request',
        I915Parser.prototype.flipEvent.bind(this));
    importer.registerEventHandler('i915_flip_complete',
        I915Parser.prototype.flipEvent.bind(this));
    importer.registerEventHandler('intel_gpu_freq_change',
        I915Parser.prototype.gpuFrequency.bind(this));
  }
function I915Parser(importer) {
    Parser.call(this, importer);

    importer.registerEventHandler('i915_gem_object_create',
        I915Parser.prototype.gemObjectCreateEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_bind',
        I915Parser.prototype.gemObjectBindEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_unbind',
        I915Parser.prototype.gemObjectBindEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_change_domain',
        I915Parser.prototype.gemObjectChangeDomainEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_pread',
        I915Parser.prototype.gemObjectPreadWriteEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_pwrite',
        I915Parser.prototype.gemObjectPreadWriteEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_fault',
        I915Parser.prototype.gemObjectFaultEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_clflush',
        // NB: reuse destroy handler
        I915Parser.prototype.gemObjectDestroyEvent.bind(this));
    importer.registerEventHandler('i915_gem_object_destroy',
        I915Parser.prototype.gemObjectDestroyEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_dispatch',
        I915Parser.prototype.gemRingDispatchEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_flush',
        I915Parser.prototype.gemRingFlushEvent.bind(this));
    importer.registerEventHandler('i915_gem_request',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_add',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_complete',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_retire',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_wait_begin',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_request_wait_end',
        I915Parser.prototype.gemRequestEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_wait_begin',
        I915Parser.prototype.gemRingWaitEvent.bind(this));
    importer.registerEventHandler('i915_gem_ring_wait_end',
        I915Parser.prototype.gemRingWaitEvent.bind(this));
    importer.registerEventHandler('i915_reg_rw',
        I915Parser.prototype.regRWEvent.bind(this));
    importer.registerEventHandler('i915_flip_request',
        I915Parser.prototype.flipEvent.bind(this));
    importer.registerEventHandler('i915_flip_complete',
        I915Parser.prototype.flipEvent.bind(this));
    importer.registerEventHandler('intel_gpu_freq_change',
        I915Parser.prototype.gpuFrequency.bind(this));
  }
function I915Parser ( importer ) { Parser . call ( this , importer ) ; importer . registerEventHandler ( 'i915_gem_object_create' , I915Parser . prototype . gemObjectCreateEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_bind' , I915Parser . prototype . gemObjectBindEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_unbind' , I915Parser . prototype . gemObjectBindEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_change_domain' , I915Parser . prototype . gemObjectChangeDomainEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_pread' , I915Parser . prototype . gemObjectPreadWriteEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_pwrite' , I915Parser . prototype . gemObjectPreadWriteEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_fault' , I915Parser . prototype . gemObjectFaultEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_clflush' , // NB: reuse destroy handler I915Parser . prototype . gemObjectDestroyEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_object_destroy' , I915Parser . prototype . gemObjectDestroyEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_ring_dispatch' , I915Parser . prototype . gemRingDispatchEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_ring_flush' , I915Parser . prototype . gemRingFlushEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_request' , I915Parser . prototype . gemRequestEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_request_add' , I915Parser . prototype . gemRequestEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_request_complete' , I915Parser . prototype . gemRequestEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_request_retire' , I915Parser . prototype . gemRequestEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_request_wait_begin' , I915Parser . prototype . gemRequestEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_request_wait_end' , I915Parser . prototype . gemRequestEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_ring_wait_begin' , I915Parser . prototype . gemRingWaitEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_gem_ring_wait_end' , I915Parser . prototype . gemRingWaitEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_reg_rw' , I915Parser . prototype . regRWEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_flip_request' , I915Parser . prototype . flipEvent . bind ( this ) ) ; importer . registerEventHandler ( 'i915_flip_complete' , I915Parser . prototype . flipEvent . bind ( this ) ) ; importer . registerEventHandler ( 'intel_gpu_freq_change' , I915Parser . prototype . gpuFrequency . bind ( this ) ) ; }
Parses linux i915 trace events.
@constructor
Parses linux i915 trace events .