parameters: (frame)
return_statement: return (
          "((::hermes::vm::SamplingProfiler *)%u)" % profiler_raw_ptr.GetValueAsUnsigned()
      )
docstring: Return the evaluation expression for getting SamplingProfiler instance
docstring_summary: Return the evaluation expression for getting SamplingProfiler instance
docstring_tokens: Return the evaluation expression for getting SamplingProfiler instance
function: def _get_profiler_instance_expr(frame):
      """Return the evaluation expression for getting SamplingProfiler instance"""
      expression = "::hermes::vm::SamplingProfiler::getInstance()"
      profiler_sharedptr_value = _evaluate_expression(frame, expression)
  
      # Currently lldb segfault while evaluating std::shared_ptr<T>::get() for GNU C++.
      # To workaround this issue we manually decode the shared_ptr raw pointer.
      profiler_raw_ptr = _get_raw_ptr_from_shared_ptr(profiler_sharedptr_value)
      return (
          "((::hermes::vm::SamplingProfiler *)%u)" % profiler_raw_ptr.GetValueAsUnsigned()
      )
function_tokens: def _get_profiler_instance_expr ( frame ) : expression = "::hermes::vm::SamplingProfiler::getInstance()" profiler_sharedptr_value = _evaluate_expression ( frame , expression ) # Currently lldb segfault while evaluating std::shared_ptr<T>::get() for GNU C++. # To workaround this issue we manually decode the shared_ptr raw pointer. profiler_raw_ptr = _get_raw_ptr_from_shared_ptr ( profiler_sharedptr_value ) return ( "((::hermes::vm::SamplingProfiler *)%u)" % profiler_raw_ptr . GetValueAsUnsigned ( ) )