input/{Async,Buffering,Thread}InputStream: set VMA name

This commit is contained in:
Max Kellermann 2022-04-26 20:43:31 +02:00
parent 58a345d346
commit 9e1b24f3a1
3 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,7 @@ AsyncInputStream::AsyncInputStream(EventLoop &event_loop, const char *_url,
buffer(&allocation.front(), allocation.size()),
resume_at(_resume_at)
{
allocation.SetName("InputStream");
allocation.ForkCow(false);
}

View File

@ -31,6 +31,8 @@ BufferingInputStream::BufferingInputStream(InputStreamPtr _input)
{
input->SetHandler(this);
buffer.SetName("InputCache");
thread.Start();
}

View File

@ -35,6 +35,7 @@ ThreadInputStream::ThreadInputStream(const char *_plugin,
allocation(_buffer_size),
buffer(&allocation.front(), allocation.size())
{
allocation.SetName("InputStream");
allocation.ForkCow(false);
}