代码之家  ›  专栏  ›  技术社区  ›  Ruslan Valeev

Callgrind生成空报告(在rails项目中)

  •  0
  • Ruslan Valeev  · 技术社区  · 5 年前

    RubyProf.measure_mode = RubyProf::MEMORY
    result = RubyProf.profile do
      ApplicationsManagement::Export.new(applications_ids, export_id).call
    end
    printer = RubyProf::CallTreePrinter.new(result)
    printer.print(path: 'profilizers/ruby_prof_reports', profile: 'callgrind')
    

    但当我看报告时,并没有关于内存使用的数据!每个方法的调用数量。有什么问题?以及如何获得rails项目块的有效报告?

    enter image description here

    0 回复  |  直到 5 年前
    推荐文章