title: How can I find out how much memory is used by a specific component or class?
body: <p>Is it possible to retrieve the amount of memory that is used by a single component in delphi?</p>
  
  <p>I'm downloading simple strings from the internet and I see that the memory usage is up to a gigabyte at by the end of the downloading process, but when I look at the saved file which contains everything I downloaded the file is only in the kilobyte range, clearly there is something going on with the components, even though I destroy them.</p>
  
  <p>Example:</p>
  
  <p>Edit:</p>
  
  <pre><code>procedure TForm1.OnCreate(Sender: TObject);
    var list: TStringList;
  begin
    list:=TStringList.Create;
    list.LoadFromFile('10MB_of_Data.txt');
    list.destroy;
  end;
  </code></pre>
  
  <p>How can I know that "list" as a TStringList is using 10 MB worth of space in memory? </p>
  
  <p>Thank you.</p>