Skip to content

Instantly share code, notes, and snippets.

View gremerritt's full-sized avatar

Greg Merritt gremerritt

  • Salsify
  • Falmouth, ME
View GitHub Profile
@palkan
palkan / pp.rb
Created February 13, 2020 13:21
[GraphQL] @pp profiling
# frozen_string_literal: true
module Directives
class Pp < GraphQL::Schema::Directive
class Profiler < Types::BaseEnum
graphql_name "PpProfiler"
description "Available profilers for @pp directive"
value :mem
value :stack