Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83fcc44b authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Increase rootcanal timer tick frequency

Improve the latency and throughput on a host setup

Test: cert/run --host L2capPerformanceTest
Tag: #gd-refactor
Bug: 157613312
Change-Id: I5be50f7cab0fcd76f8e53f68dfbfe99d72aa2b71
parent 8ef15f7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ void TestEnvironment::SetUpTestChannel() {
  int socket_fd = test_channel_transport_.SetUp(test_port_);
  test_channel_.AddPhy({"BR_EDR"});
  test_channel_.AddPhy({"LOW_ENERGY"});
  test_channel_.SetTimerPeriod({"10"});
  test_channel_.SetTimerPeriod({"5"});
  test_channel_.StartTimer({});

  test_channel_.RegisterSendResponse(
+1 −5
Original line number Diff line number Diff line
@@ -119,11 +119,7 @@ ErrorCode LinkLayerController::SendAclToRemote(
  AddressWithType destination = connections_.GetAddress(handle);
  Phy::Type phy = connections_.GetPhyType(handle);

  LOG_INFO("%s(%s): handle 0x%x size %d", __func__,
           properties_.GetAddress().ToString().c_str(), handle,
           static_cast<int>(acl_packet.size()));

  ScheduleTask(milliseconds(5), [this, handle]() {
  ScheduleTask(milliseconds(1), [this, handle]() {
    std::vector<bluetooth::hci::CompletedPackets> completed_packets;
    bluetooth::hci::CompletedPackets cp;
    cp.connection_handle_ = handle;