Skip to content

Instantly share code, notes, and snippets.

@tomgilder
tomgilder / MainThreadWatchdog.cs
Last active November 9, 2015 23:12
Watchdog to alert when iOS main thread is blocked
using System;
using System.Diagnostics;
using Foundation;
using System.Runtime.InteropServices;
using ObjCRuntime;
namespace Watchdog
{
public static class MainThreadWatchdog
{