Open
Conversation
Owner
|
建议用额外的库实现额外的功能。不建议再增加和修改 skynet 核心功能以外的代码。 |
Contributor
Author
|
因为profile只有start和stop,这样只能统计一层函数,感觉加一个elapsed能取中间的时间值更完善一些,类似于C#的Stopwatch接口。 如果我直接用skynet.hpc()这样的函数,又没办法排除协程让出的时间。 能否再评估一下。 |
31e0ac2 to
208be03
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
我想增加一个profile.elapsed接口,用来作函数调用的时间统计,此接口对其他功能没有影响。
testprofile.lua是一个简单的例子