<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamatama_41</author_name>
  <author_url>https://blog.hatena.ne.jp/kamatama_41/</author_url>
  <blog_title>かまたま日記3</blog_title>
  <blog_url>https://kamatama41.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>runtime.MemStats を使うと現時点でのメモリの使用状況などを確認できます。 とりあえず、以下のようなコードを埋めるとAlloc (割り当てられたヒープオブジェクトのバイト数) とNumGC (GCの回数) を確認できます。ついでに期間中の最大のAllocも確認しています。 その他必要なデータはMemStatsのドキュメントを読みながら適宜追加すること。 package main import ( &quot;log&quot; &quot;runtime&quot; &quot;time&quot; ) func main() { tick := time.NewTicker(2 * time.Second) defer tick.Sto…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamatama41.hatenablog.com%2Fentry%2F2022%2F08%2F12%2F200454&quot; title=&quot;runtime.MemStatsを使ってリアルタイムにメモリ使用量を確認する - かまたま日記3&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-12 20:04:54</published>
  <title>runtime.MemStatsを使ってリアルタイムにメモリ使用量を確認する</title>
  <type>rich</type>
  <url>https://kamatama41.hatenablog.com/entry/2022/08/12/200454</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
