Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) add metric for recyclers #164

Merged
merged 4 commits into from
May 16, 2019

Conversation

fengjiachun
Copy link
Contributor

No description provided.

@@ -1418,6 +1419,14 @@ public void run(final Status status) {

}

private void recordByteBufferCollectorMetric() {
final String threadName = Thread.currentThread().getName();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是不是用一个 thread local 来保存,重复生成这个 metric key 的代价也不少。

@killme2008 killme2008 merged commit e44b38a into feat/add_adaptive_allocator May 16, 2019
@killme2008 killme2008 deleted the feat/add_metric_for_recyclers branch May 16, 2019 02:24
killme2008 pushed a commit that referenced this pull request May 22, 2019
* (feat) add AdaptiveBufAllocator

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (fix) rename method name

* (fix) minor fix

* (fix) add metric for recyclers (#164)

* (fix) add metric for recyclers

* (fix) add metric for ByteBufferCollector.capacity

* (fix) code format

* (fix) by review comment

* feat/zero copy with replicator (#167)

* (fix) zero copy with replicator

* (fix) support zero copy and add benchmark

* (fix) rename field

* (fix) rm zero copy and unnecessary metric

* (fix) by review comment

* (feat) add unit test AdaptiveBufAllocatorTest

* (feat) add unit test RecyclersTest

* (feat) add unit test RecyclableByteBufferListTest

* (feat) add unit test ByteBufferCollectorTest
fengjiachun added a commit that referenced this pull request May 24, 2019
* (feat) add AdaptiveBufAllocator

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (fix) rename method name

* (fix) minor fix

* (fix) add metric for recyclers (#164)

* (fix) add metric for recyclers

* (fix) add metric for ByteBufferCollector.capacity

* (fix) code format

* (fix) by review comment

* feat/zero copy with replicator (#167)

* (fix) zero copy with replicator

* (fix) support zero copy and add benchmark

* (fix) rename field

* (fix) rm zero copy and unnecessary metric

* (fix) by review comment

* (feat) add unit test AdaptiveBufAllocatorTest

* (feat) add unit test RecyclersTest

* (feat) add unit test RecyclableByteBufferListTest

* (feat) add unit test ByteBufferCollectorTest
fengjiachun added a commit that referenced this pull request May 24, 2019
* (feat) add AdaptiveBufAllocator

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (fix) rename method name

* (fix) minor fix

* (fix) add metric for recyclers (#164)

* (fix) add metric for recyclers

* (fix) add metric for ByteBufferCollector.capacity

* (fix) code format

* (fix) by review comment

* feat/zero copy with replicator (#167)

* (fix) zero copy with replicator

* (fix) support zero copy and add benchmark

* (fix) rename field

* (fix) rm zero copy and unnecessary metric

* (fix) by review comment

* (feat) add unit test AdaptiveBufAllocatorTest

* (feat) add unit test RecyclersTest

* (feat) add unit test RecyclableByteBufferListTest

* (feat) add unit test ByteBufferCollectorTest
killme2008 pushed a commit that referenced this pull request Jul 5, 2019
* (feat) add FixedThreadsExecutorGroup #168

* (feat) rename method

* (feat) add MpscSingleThreadExecutor and benchmark #168

* (fix) forget to warmup producers

* (fix) fix some bugs and add unit test

* (fix) add more unit test

* (fix) add more unit test

* (fix) add more unit test

* (fix) add some comments

* (fix) unit test

* (fix) add some comments

* (fix) refactoring Utils class

* (fix) refactoring Utils class

* (fix) jraft.closure.threadpool.size.max update default value

* (fix) fix unit test

* (fix) fix unit test

* (feat) refactor ThreadId and replicator (#169)

* (feat) refactor ThreadId and replicator

* (feat) Adds javadoc

* (feat) add pooled buf allocator (#161)

* (feat) add AdaptiveBufAllocator

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (fix) rename method name

* (fix) minor fix

* (fix) add metric for recyclers (#164)

* (fix) add metric for recyclers

* (fix) add metric for ByteBufferCollector.capacity

* (fix) code format

* (fix) by review comment

* feat/zero copy with replicator (#167)

* (fix) zero copy with replicator

* (fix) support zero copy and add benchmark

* (fix) rename field

* (fix) rm zero copy and unnecessary metric

* (fix) by review comment

* (feat) add unit test AdaptiveBufAllocatorTest

* (feat) add unit test RecyclersTest

* (feat) add unit test RecyclableByteBufferListTest

* (feat) add unit test ByteBufferCollectorTest

* Add unit tests for com.alipay.sofa.jraft.util.BytesUtil (#166)

These tests were written using Diffblue Cover.

* (fix) Utils.java format

* (feat) add FixedThreadsExecutorGroup #168

* (feat) rename method

* (feat) add MpscSingleThreadExecutor and benchmark #168

* (fix) forget to warmup producers

* (fix) fix some bugs and add unit test

* (fix) add more unit test

* (fix) add more unit test

* (fix) add more unit test

* (fix) add some comments

* (fix) unit test

* (fix) add some comments

* (fix) refactoring Utils class

* (fix) refactoring Utils class

* (fix) jraft.closure.threadpool.size.max update default value

* (fix) fix unit test

* (fix) fix unit test

* (feat) add pooled buf allocator (#161)

* (feat) add AdaptiveBufAllocator

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (feat) pooled for ByteBufferCollector #158

* (fix) rename method name

* (fix) minor fix

* (fix) add metric for recyclers (#164)

* (fix) add metric for recyclers

* (fix) add metric for ByteBufferCollector.capacity

* (fix) code format

* (fix) by review comment

* feat/zero copy with replicator (#167)

* (fix) zero copy with replicator

* (fix) support zero copy and add benchmark

* (fix) rename field

* (fix) rm zero copy and unnecessary metric

* (fix) by review comment

* (feat) add unit test AdaptiveBufAllocatorTest

* (feat) add unit test RecyclersTest

* (feat) add unit test RecyclableByteBufferListTest

* (feat) add unit test ByteBufferCollectorTest

* (fix) Utils.java format

* (fix) fix bad key with executor map

* (fix) bad import

* (fix) fix unit test

* (feat) add mor benchmark

* (fix) code format

* (fix) code format

* (fix) benchmark with jmh

* (fix) benchmark with jmh

* (fix) set common daemon

* (fix) fix unit test

* (fix) should be no radical changes, especially if they are not fully tested.

* (feat) add jctools

* (feat) configure the number of processors #180 (#181)

* (fix) format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants