<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>scior</author_name>
  <author_url>https://blog.hatena.ne.jp/scior/</author_url>
  <blog_title>しおメモ</blog_title>
  <blog_url>https://scior.hatenablog.com/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Swift</anon>
  </categories>
  <description>プロジェクトが変わるたびに毎回似たようなものを作っている気がしたので、メモしておくことにしました。 単純なAPIのパフォーマンスならNewRelicやらDatadogやらで見れば良いですが、アプリ内部のボトルネックの検証をするのには役に立つ事があります。 こちらは主に外部ライブラリに通信関連を委ねている場合に、汎用的に差し込む目的で利用します。 ラッパークラスを作成している場合は、URLProtocolを利用せず、そちらに直接os_signpostの処理を書いていくのがわかりやすそうです。 コード URLProtocolの実装は以下のようになります。 実際に通信を行う必要があるので、URLSe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fscior.hatenablog.com%2Fentry%2F2025%2F12%2F24%2F213628&quot; title=&quot;os_signpostを投げるURLProtocolを作る - しおメモ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/scior/20251224/20251224213431.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-24 21:36:28</published>
  <title>os_signpostを投げるURLProtocolを作る</title>
  <type>rich</type>
  <url>https://scior.hatenablog.com/entry/2025/12/24/213628</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
