mirror of
https://github.com/tursom/GoCollections.git
synced 2025-02-26 20:20:31 +08:00
14 lines
286 B
Go
14 lines
286 B
Go
package exceptions
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"unsafe"
|
|
)
|
|
|
|
func TestGetStackTrace(t *testing.T) {
|
|
fmt.Println(unsafe.Sizeof(StackTrace{}))
|
|
fmt.Println(unsafe.Sizeof(make([]StackTrace, 0, 16)))
|
|
fmt.Println(unsafe.Sizeof(make([]StackTrace, 0, 16)) + unsafe.Sizeof(StackTrace{})*16)
|
|
}
|