| 583 | } |
| 584 | |
| 585 | void RdApplication::WriteBoostUpInfoForPid(uint32_t pid) { |
| 586 | if (!app_shared_message_) { |
| 587 | LOGE("Don't have app_shared_message_"); |
| 588 | return; |
| 589 | } |
| 590 | auto shm_name = std::format("application_shm_{}", pid); |
| 591 | std::string shm_buffer; |
| 592 | shm_buffer.resize(sizeof(AppSharedMessage)); |
| 593 | memcpy(shm_buffer.data(), app_shared_message_.get(), sizeof(AppSharedMessage)); |
| 594 | app_shared_info_->WriteData(shm_name, shm_buffer); |
| 595 | } |
| 596 | |
| 597 | void RdApplication::SendAudioSpectrumMessage() { |
| 598 | auto st = RdStatistics::Instance(); |