xeaglex
V2EX  ›  问与答

请问有没有测试.NET Core 函数耗时的工具?

  •  1
     
  •   xeaglex · Aug 24, 2018 · 2098 views
    This topic created in 2835 days ago, the information mentioned may be changed or developed.

    就是测试各个函数在运行中平均耗时多少,我想用它来分析性能瓶颈,请问有这样的工具吗?

    7 replies    2018-08-24 19:35:38 +08:00
    Blazings
        1
    Blazings  
       Aug 24, 2018 via Android
    有,vs 就自带,jb 家也有
    Itoktsnhc
        2
    Itoktsnhc  
       Aug 24, 2018 via Android
    dotTrace 可以吗?
    xycool
        3
    xycool  
       Aug 24, 2018 via iPhone
    vs 有
    chinvo
        4
    chinvo  
       Aug 24, 2018 via iPhone
    ide 内置,或者 BenchmarkDotNet
    xeaglex
        5
    xeaglex  
    OP
       Aug 24, 2018
    @Blazings
    @xycool
    @chinvo

    谢谢,主要是我是 Linux 平台,所以希望有能在 Linux 运行的工具
    xeaglex
        6
    xeaglex  
    OP
       Aug 24, 2018
    @Itoktsnhc 谢谢,请问有没有适用 Linux 平台的工具?另外看起来 dotTrace 需要付费对不对
    chinvo
        7
    chinvo  
       Aug 24, 2018 via iPhone
    @xeaglex #5 BenchmarkDotNet 是 .net core 实现的跨平台 benchmark 库

    JB 的 Rider 应该是支持 Linux 的吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   834 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 21:24 · PVG 05:24 · LAX 14:24 · JFK 17:24
    ♥ Do have faith in what you're doing.