{"action":"created","issue":{"url":"https://api.github.com/repos/MiniProfiler/dotnet/issues/208","repository_url":"https://api.github.com/repos/MiniProfiler/dotnet","labels_url":"https://api.github.com/repos/MiniProfiler/dotnet/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/MiniProfiler/dotnet/issues/208/comments","events_url":"https://api.github.com/repos/MiniProfiler/dotnet/issues/208/events","html_url":"https://github.com/MiniProfiler/dotnet/issues/208","id":250933057,"number":208,"title":"Cannot record new actions after DOM is loaded with SignalR - only shows after page reload","user":{"login":"Saibamen","id":905878,"avatar_url":"https://avatars3.githubusercontent.com/u/905878?v=4","gravatar_id":"","url":"https://api.github.com/users/Saibamen","html_url":"https://github.com/Saibamen","followers_url":"https://api.github.com/users/Saibamen/followers","following_url":"https://api.github.com/users/Saibamen/following{/other_user}","gists_url":"https://api.github.com/users/Saibamen/gists{/gist_id}","starred_url":"https://api.github.com/users/Saibamen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saibamen/subscriptions","organizations_url":"https://api.github.com/users/Saibamen/orgs","repos_url":"https://api.github.com/users/Saibamen/repos","events_url":"https://api.github.com/users/Saibamen/events{/privacy}","received_events_url":"https://api.github.com/users/Saibamen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-17T12:51:20Z","updated_at":"2017-09-17T14:51:03Z","closed_at":null,"author_association":"NONE","body":"MiniProfiler Alpha 7, .Net Core 1.1, VS 15.3, Win10\r\n\r\n**TL;DR:** Current actions profiling from SignalR shows after page reload - not in real time.\r\n\r\nI added few `Start()` methods to SignalR hub code and I see a weird bug.\r\nFirst connection to site gives me only one profile, but when I refresh (F5 or entering this same site again) page - SignalR profiling appears magically...\r\n\r\nWhen full page (DOM) is loaded, MiniProfiler cannot record new actions (from SignalR). Tip: page isn't reloaded when new SignalR action is submitted. We stay at one HTTP request.\r\n\r\nCurrent profiler for actions with SignalR (`Start()`, `Stop()` functions) shows after page reload - not in real time.\r\n\r\n## First connection:\r\n  | duration (ms)\r\n-- | --\r\nMiniProfiler | 186.7\r\nController: User.Index | 6.1\r\nFind: Index | 3474.7\r\nRender: /Views/User/Index.cshtml | 941.5\r\nFind: Components/CreateRoom/Default | 489.7\r\nRender: /Views/Shared/Components/CreateRoom/D... | 166.3\r\nFind: Components/CreatePrivateConversation/De... | 68.7\r\nRender: /Views/Shared/Components/CreatePrivat... | 7.5\r\nFind: Components/BrowseRooms/Default | 73.1\r\nRender: /Views/Shared/Components/BrowseRooms/... | 12.4\r\nFind: _DeleteModalPartial | 62.5\r\nRender: /Views/Shared/_DeleteModalPartial.csh... | 3.1\r\nFind: _LeftSidebarPartial | 62.5\r\nRender: /Views/Shared/_LeftSidebarPartial.csh... | 31.4\r\nFind: _RightSidebarPartial | 50.5\r\nRender: /Views/Shared/_RightSidebarPartial.cs... | 3.4\r\n**client event** | **duration (ms)**\r\n-- | --\r\nResponse | 17.0\r\nDom Content Loaded Event | 6.0\r\nLoad Event | 11.0\r\nDom Complete |  \r\n\r\n## After refresh:\r\n\r\n  | duration (ms)\r\n-- | --\r\nMiniProfiler | 53.7\r\nController: User.Index | 2.7\r\nRender: /Views/User/Index.cshtml | 16.2\r\n \r\nclient event | duration (ms)\r\n-- | --\r\nResponse | 3.0\r\nDom Content Loaded Event | 7.0\r\nLoad Event | 13.0\r\nDom Complete |  \r\n\r\n### And my SignalR action profiler from first connection (only appears after refresh):\r\n\r\n  | duration (ms) | sql (ms)\r\n-- | -- | --\r\nGetRooms | 30.0 | 13.5         (2)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MiniProfiler/dotnet/issues/comments/330054333","html_url":"https://github.com/MiniProfiler/dotnet/issues/208#issuecomment-330054333","issue_url":"https://api.github.com/repos/MiniProfiler/dotnet/issues/208","id":330054333,"user":{"login":"NickCraver","id":454813,"avatar_url":"https://avatars2.githubusercontent.com/u/454813?v=4","gravatar_id":"","url":"https://api.github.com/users/NickCraver","html_url":"https://github.com/NickCraver","followers_url":"https://api.github.com/users/NickCraver/followers","following_url":"https://api.github.com/users/NickCraver/following{/other_user}","gists_url":"https://api.github.com/users/NickCraver/gists{/gist_id}","starred_url":"https://api.github.com/users/NickCraver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickCraver/subscriptions","organizations_url":"https://api.github.com/users/NickCraver/orgs","repos_url":"https://api.github.com/users/NickCraver/repos","events_url":"https://api.github.com/users/NickCraver/events{/privacy}","received_events_url":"https://api.github.com/users/NickCraver/received_events","type":"User","site_admin":false},"created_at":"2017-09-17T14:51:03Z","updated_at":"2017-09-17T14:51:03Z","author_association":"OWNER","body":"@davidfowl I haven't dug into 2.0 yet, is there a reasonable hook point to look for/observe here in a new MiniProfiler.SignalR package that'll pull results from the server? I'm very curious on how you think we should handle SignalR apps in general...would like to do it proper."}}
{"actor":{"display_login":"NickCraver"}}