go tool pprof
프로그램:- pprof 데이터를 분석하여 보여 주는 pprof 바이너리다.
runtime/pprof
패키지:- Go 프로그램으로부터 pprof 데이터를 생성하여 내보내는 일을 하는 패키지다.
net/http/pprof
패키지:runtime/pprof
패키지가 하고 있는 것을 (ServeHTTP로) 웹으로 내보내거나 프로그램의 pprof 데이터를 분석하여 웹 인터페이스로 보여 주는 일을 하는 패키지다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"syscall" | |
"unsafe" | |
) | |
// MessageBox of Win32 API. | |
func MessageBox(hwnd uintptr, caption, title string, flags uint) int { | |
ret, _, _ := syscall.NewLazyDLL("user32.dll").NewProc("MessageBoxW").Call( | |
uintptr(hwnd), | |
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(caption))), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
//#include "dllmain.h" | |
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lpcwstr | |
// #include <windows.h> | |
// #include <wchar.h> | |
// #include <WinNT.h> | |
import "C" | |
import ( | |
"unicode/utf16" | |
"unsafe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="tab_login"><a href="#" id="tab_login_toggle" onclick="fnLoginToggle();"></a> | |
<script> | |
function fnLoginToggle() {}; | |
$(function() { | |
if(window.T.config.USER.name) { | |
$('#tab_login_toggle').text('로그아웃'); | |
fnLoginToggle = function() { document.location.href = "https://www.tistory.com/auth/logout?redirectUrl=" + encodeURIComponent(window.location.href); }; | |
} else { | |
$('#tab_login_toggle').text('로그인'); | |
fnLoginToggle = function() { document.location.href = "https://www.tistory.com/auth/login?redirectUrl=" + encodeURIComponent(window.location.href); }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package shard | |
import ( | |
"errors" | |
"fmt" | |
"strconv" | |
"sync" | |
"github.com/bwmarrin/discordgo" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"unsafe" | |
"github.com/nanitefactory/memory" | |
"github.com/nanitefactory/outputdbg" | |
) | |
// #include <windows.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"syscall" | |
"unsafe" | |
"github.com/nanitefactory/gominhook" // In order to use this package you need to have MinHook.x64.dll in your system. | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io" | |
"os" | |
) |
NewerOlder