Skip to content
callcount

map

See what your dependencies call most

Every dot is a function, placed by how often it’s called in production and how much of that runs inside a loop. Put on a project lens, say Kubernetes, and the map redraws to what that codebase calls, with its own loop shares. Search, filter, click through to any function.

Project lens
X-axis
Package
Origin
View
0%25%50%75%100%10k100kproduction calls (log scale)share of calls in a loopUnmarshalErrorfSprintfHasPrefixTrimSpaceFprintfBuilder.WriteStringPrintfContext.Done
coolhot in-loop prod callsringed = hottest320 functions across the corpus

Drag a box on the chart to zoom; double-click to reset. Or use the zoom controls. Volume = production calls.

Show the 320 plotted functions as a list
  1. fmt.Errorf375,541 · 15%
  2. github.com/Azure/go-autorest/autorest.NewErrorWithError215,125 · 0%
  3. fmt.Sprintf203,036 · 19%
  4. github.com/Azure/go-autorest/autorest.Encode193,077 · 0%
  5. encoding/json.Unmarshal172,212 · 51%
  6. errors.New97,767 · 5%
  7. github.com/Azure/go-autorest/tracing.StartSpan84,867 · 0%
  8. github.com/Azure/go-autorest/tracing.EndSpan84,867 · 0%
  9. github.com/Azure/go-autorest/tracing.IsEnabled84,866 · 0%
  10. strings.Join82,461 · 5%
  11. context.Background73,438 · 4%
  12. encoding/json.Marshal69,401 · 2%
  13. net/http.Request.WithContext67,110 · 0%
  14. github.com/Azure/go-autorest/autorest.WithBaseURL62,503 · 0%
  15. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils.Marshal61,579 · 0%
  16. github.com/Azure/go-autorest/autorest.Respond56,668 · 0%
  17. github.com/Azure/go-autorest/autorest.CreatePreparer56,667 · 0%
  18. github.com/Azure/go-autorest/autorest/azure.WithErrorUnlessStatusCode56,663 · 0%
  19. github.com/Azure/go-autorest/autorest.ByClosing56,497 · 0%
  20. github.com/Azure/go-autorest/autorest.WithQueryParameters55,964 · 0%
  21. github.com/Azure/go-autorest/autorest.WithPathParameters54,747 · 0%
  22. github.com/alibabacloud-go/tea/dara.String53,172 · 0%
  23. sync.Mutex.Unlock52,549 · 8%
  24. github.com/Azure/go-autorest/autorest/azure.DoRetryWithRegistration50,090 · 0%
  25. sync.Mutex.Lock49,030 · 7%
  26. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithLocationType47,522 · 0%
  27. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithName47,522 · 0%
  28. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.NewFieldDef47,522 · 0%
  29. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithRequestField45,717 · 0%
  30. github.com/Azure/go-autorest/autorest.ByUnmarshallingJSON44,775 · 0%
  31. fmt.Fprintf40,581 · 25%
  32. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithJsonTag40,082 · 0%
  33. time.Now38,561 · 11%
  34. strings.TrimSpace37,673 · 28%
  35. github.com/therecipe/qt/internal.CallLocalFunction35,572 · 0%
  36. github.com/Azure/go-autorest/autorest.AsGet35,031 · 0%
  37. strings.Builder.WriteString33,485 · 30%
  38. github.com/aliyun/alibaba-cloud-sdk-go/sdk.Client.AddAsyncTask33,306 · 0%
  39. path/filepath.Join33,162 · 21%
  40. fmt.Printf32,001 · 24%
  41. strings.HasPrefix28,947 · 42%
  42. github.com/alibabacloud-go/tea/dara.IsNil26,921 · 0%
  43. github.com/Azure/go-autorest/autorest/validation.Validate26,838 · 0%
  44. github.com/Azure/go-autorest/autorest/validation.NewError26,834 · 0%
  45. strings.Contains23,898 · 26%
  46. github.com/IBM/go-sdk-core/v5/core.SDKErrorf23,567 · 0%
  47. fmt.Println23,466 · 14%
  48. sync.RWMutex.Unlock22,651 · 5%
  49. github.com/DataDog/datadog-api-client-go/v2/api/datadog.Unmarshal21,020 · 0%
  50. sync.RWMutex.Lock20,990 · 5%
  51. strings.Split19,952 · 23%
  52. io.Closer.Close19,615 · 8%
  53. strings.ToLower19,404 · 28%
  54. errors.Is19,026 · 23%
  55. log.Printf18,891 · 21%
  56. sync.RWMutex.RUnlock18,627 · 5%
  57. strconv.AppendInt18,162 · 1%
  58. net/http.Header.Set18,022 · 5%
  59. reflect.ValueOf17,721 · 12%
  60. sync.RWMutex.RLock17,499 · 4%
  61. github.com/aliyun/alibaba-cloud-sdk-go/sdk.Client.DoAction16,654 · 0%
  62. github.com/Azure/go-autorest/autorest.AsContentType16,388 · 0%
  63. github.com/Azure/go-autorest/autorest.WithJSON16,307 · 0%
  64. net/http.Header.Get16,143 · 3%
  65. os.Getenv15,532 · 3%
  66. github.com/DataDog/datadog-api-client-go/v2/api/datadog.Marshal15,505 · 0%
  67. github.com/Azure/go-autorest/autorest.DoRetryForStatusCodes15,451 · 0%
  68. strconv.Itoa15,428 · 21%
  69. github.com/huaweicloud/huaweicloud-sdk-go-v3/core.HcHttpClient.Sync15,349 · 0%
  70. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker.BaseInvoker.Invoke15,308 · 0%
  71. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker.NewBaseInvoker15,308 · 0%
  72. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.Build15,308 · 0%
  73. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithContentType15,308 · 0%
  74. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithMethod15,308 · 0%
  75. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithPath15,308 · 0%
  76. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithResponse15,308 · 0%
  77. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.NewHttpRequestDefBuilder15,308 · 0%
  78. github.com/Azure/go-autorest/autorest/azure.NewAsyncOpIncompleteError15,306 · 0%
  79. github.com/onsi/ginkgo/v2.By15,305 · 5%
  80. github.com/Azure/go-autorest/autorest/azure.NewFutureFromResponse15,244 · 0%
  81. github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests.RpcRequest.InitWithApiInfo15,176 · 0%
  82. context.Context.Done14,536 · 50%
  83. github.com/pkg/errors.Wrap14,071 · 12%
  84. time.Since14,002 · 14%
  85. github.com/pkg/errors.Wrapf13,460 · 22%
  86. bytes.Buffer.WriteString13,410 · 37%
  87. regexp.MustCompile12,886 · 3%
  88. os.File.Close12,586 · 8%
  89. github.com/stretchr/testify/require.NoError12,522 · 11%
  90. github.com/pkg/errors.Errorf12,341 · 19%
  91. github.com/alibabacloud-go/tea/dara.Prettify12,282 · 0%
  92. github.com/IBM/go-sdk-core/v5/core.UnmarshalPrimitive12,210 · 0%
  93. context.Context.Err12,100 · 41%
  94. strings.Trim11,685 · 7%
  95. io.Writer.Write11,482 · 18%
  96. fmt.Sprint11,431 · 7%
  97. net/http.Request.Context11,430 · 4%
  98. github.com/IBM/vpc-go-sdk/common.GetComponentInfo11,329 · 0%
  99. github.com/Azure/go-autorest/autorest.AsPost10,834 · 0%
  100. github.com/go-logr/logr.Logger.Info10,693 · 18%
  101. k8s.io/kubernetes/test/e2e/framework.ExpectNoError10,641 · 7%
  102. os.Stat10,186 · 20%
  103. context.TODO10,060 · 17%
  104. strconv.Atoi10,023 · 24%
  105. time.Time.Year9,847 · 1%
  106. strings.Builder.String9,757 · 8%
  107. time.Time.Add9,550 · 15%
  108. strings.HasSuffix9,499 · 33%
  109. context.WithTimeout9,459 · 7%
  110. net/url.Values.Add9,387 · 18%
  111. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json.Unmarshal9,321 · 0%
  112. reflect.Value.Elem9,302 · 18%
  113. fmt.Fprintln9,144 · 19%
  114. net/url.Values.Set9,066 · 19%
  115. strings.TrimPrefix8,956 · 33%
  116. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter.StringConverterFactory8,905 · 0%
  117. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter.Converter.CovertStringToInterface8,904 · 0%
  118. reflect.TypeOf8,899 · 10%
  119. github.com/Azure/go-autorest/autorest.DecorateSender8,816 · 0%
  120. reflect.Value.Type8,474 · 21%
  121. os.Exit8,280 · 6%
  122. testing.common.Fatalf8,113 · 19%
  123. github.com/IBM/go-sdk-core/v5/core.StringPtr8,101 · 0%
  124. os.ReadFile8,089 · 12%
  125. github.com/Azure/go-autorest/autorest/to.String8,053 · 0%
  126. github.com/Azure/go-autorest/autorest.Prepare8,051 · 0%
  127. github.com/Azure/go-autorest/autorest.AsJSON8,040 · 0%
  128. github.com/aws/aws-sdk-go/aws.String7,781 · 14%
  129. net/http.Error7,772 · 3%
  130. github.com/pkg/errors.New7,706 · 7%
  131. reflect.Value.Kind7,608 · 20%
  132. path.Join7,604 · 18%
  133. io.ReadAll7,591 · 6%
  134. github.com/Azure/go-autorest/autorest.AsPut7,583 · 0%
  135. reflect.Value.Set7,545 · 17%
  136. time.Time.Format7,500 · 13%
  137. reflect.Value.Interface7,496 · 41%
  138. strings.ReplaceAll7,490 · 22%
  139. bytes.Buffer.Bytes7,430 · 10%
  140. time.Sleep7,421 · 62%
  141. net/http.ResponseWriter.Header7,272 · 4%
  142. bytes.NewReader7,229 · 8%
  143. github.com/IBM/platform-services-go-sdk/common.GetComponentInfo7,058 · 0%
  144. os.IsNotExist7,044 · 16%
  145. bytes.Buffer.String7,038 · 9%
  146. github.com/Azure/go-autorest/autorest.AsDelete6,959 · 0%
  147. net/url.Parse6,745 · 9%
  148. github.com/DataDog/datadog-api-client-go/v2/api/datadog.UnmarshalUseNumber6,606 · 0%
  149. github.com/DataDog/datadog-api-client-go/v2/api/datadog.DeleteKeys6,603 · 0%
  150. github.com/go-logr/logr.Logger.V6,584 · 22%
  151. os/exec.Command6,580 · 8%
  152. github.com/alibabacloud-go/tea/dara.Validate6,550 · 0%
  153. testing.common.Errorf6,546 · 27%
  154. net/url.URL.String6,534 · 9%
  155. github.com/IBM/go-sdk-core/v5/core.UnmarshalModel6,249 · 0%
  156. sort.Strings6,232 · 11%
  157. time.Time.Minute6,225 · 1%
  158. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json.Marshal6,212 · 0%
  159. time.Time.UTC6,201 · 10%
  160. net/url.URL.Query6,199 · 2%
  161. reflect.Type.Kind6,184 · 19%
  162. sync.WaitGroup.Done6,158 · 42%
  163. testing.common.Helper6,094 · 0%
  164. time.Time.Hour6,086 · 1%
  165. math.Abs6,031 · 15%
  166. github.com/containerd/log.G6,025 · 23%
  167. strings.TrimSuffix5,974 · 26%
  168. strconv.FormatInt5,869 · 31%
  169. net/http.ResponseWriter.WriteHeader5,868 · 2%
  170. github.com/okta/okta-sdk-golang/v5/okta.newAPIResponse5,828 · 0%
  171. sync.WaitGroup.Wait5,801 · 5%
  172. github.com/alibabacloud-go/tea/dara.Convert5,750 · 0%
  173. regexp.Regexp.MatchString5,739 · 30%
  174. sync.WaitGroup.Add5,728 · 39%
  175. github.com/Azure/go-autorest/autorest.DecoratePreparer5,652 · 0%
  176. github.com/alibabacloud-go/tea/dara.BoolValue5,605 · 0%
  177. strings.Replace5,604 · 22%
  178. github.com/go-logr/logr.Logger.Error5,590 · 15%
  179. github.com/alibabacloud-go/darabonba-openapi/v2/utils.Query5,588 · 0%
  180. strings.EqualFold5,578 · 44%
  181. github.com/Azure/go-autorest/autorest.WithHeader5,549 · 0%
  182. k8s.io/klog/v2.V5,434 · 22%
  183. path/filepath.Dir5,422 · 19%
  184. net/url.Values.Get5,402 · 4%
  185. os.Open5,361 · 9%
  186. net/http.Header.Add5,317 · 57%
  187. strconv.ParseInt5,311 · 22%
  188. github.com/Azure/go-autorest/autorest.String5,277 · 0%
  189. github.com/stretchr/testify/require.Assertions.NoError5,266 · 6%
  190. time.Time.IsZero5,261 · 19%
  191. encoding/json.Decoder.Decode5,190 · 10%
  192. time.Time.Unix5,173 · 12%
  193. time.Duration.Seconds5,173 · 15%
  194. reflect.Type.Elem5,127 · 22%
  195. errors.As5,124 · 11%
  196. os.MkdirAll5,117 · 10%
  197. log.Fatal5,083 · 7%
  198. slices.Contains5,031 · 37%
  199. context.WithCancel5,028 · 4%
  200. github.com/go-kit/log.Logger.Log5,022 · 29%
  201. net/http.Client.Do5,010 · 8%
  202. github.com/therecipe/qt/internal.CallLocalAndDeregisterRemoteFunction4,981 · 0%
  203. github.com/therecipe/qt/internal.CallLocalAndRegisterRemoteFunction4,973 · 0%
  204. encoding/json.NewDecoder4,945 · 3%
  205. sync.Once.Do4,932 · 3%
  206. os.Remove4,875 · 17%
  207. strconv.ParseUint4,817 · 34%
  208. strconv.FormatFloat4,789 · 15%
  209. io.Copy4,786 · 11%
  210. sort.Slice4,762 · 9%
  211. path/filepath.Base4,756 · 24%
  212. time.Time.Second4,728 · 1%
  213. errors.Join4,722 · 24%
  214. io/fs.DirEntry.Name4,704 · 91%
  215. github.com/jesseduffield/lazygit/pkg/integration/components.Contains4,653 · 0%
  216. github.com/markusmobius/go-dateparser/internal/regexp.MustCompile4,635 · 0%
  217. log.Fatalf4,631 · 14%
  218. time.Time.Month4,597 · 2%
  219. testing.T.Run4,579 · 17%
  220. time.Time.UnixNano4,561 · 11%
  221. github.com/openai/openai-go/v3/internal/apijson.UnmarshalRoot4,534 · 0%
  222. github.com/stretchr/testify/require.Assertions.Equal4,487 · 6%
  223. time.Unix4,471 · 19%
  224. context.Context.Value4,402 · 1%
  225. bytes.NewBuffer4,361 · 5%
  226. github.com/jdcloud-api/jdcloud-sdk-go/core.Logger.Log4,338 · 0%
  227. golang.org/x/xerrors.Errorf4,337 · 19%
  228. github.com/jdcloud-api/jdcloud-sdk-go/core.JDCloudClient.Send4,325 · 0%
  229. bytes.Equal4,283 · 31%
  230. fmt.Fprint4,280 · 24%
  231. net/url.Values.Encode4,277 · 2%
  232. net/http.NewRequestWithContext4,273 · 5%
  233. encoding/json.MarshalIndent4,264 · 4%
  234. strings.Index4,225 · 32%
  235. github.com/juju/errors.Trace4,225 · 21%
  236. os.WriteFile4,198 · 11%
  237. github.com/onsi/ginkgo/v2.It4,184 · 2%
  238. io/fs.FileInfo.IsDir4,177 · 24%
  239. bytes.Buffer.WriteByte4,177 · 44%
  240. k8s.io/klog/v2.Verbose.Infof4,171 · 24%
  241. time.Time.Day4,138 · 2%
  242. strconv.FormatBool4,125 · 12%
  243. log.Println4,125 · 18%
  244. k8s.io/kubernetes/test/e2e/framework.Logf4,058 · 25%
  245. strings.SplitN4,058 · 41%
  246. google.golang.org/grpc/status.Errorf3,996 · 10%
  247. time.Time.Sub3,966 · 29%
  248. github.com/stretchr/testify/assert.Equal3,944 · 11%
  249. strings.ToUpper3,926 · 28%
  250. github.com/cockroachdb/errors.Wrap3,891 · 10%
  251. k8s.io/apimachinery/pkg/api/errors.IsNotFound3,869 · 16%
  252. github.com/Azure/go-autorest/autorest.AsPatch3,852 · 0%
  253. log/slog.Logger.Debug3,773 · 25%
  254. github.com/DataDog/datadog-api-client-go/v2/api/datadog.APIClient.Decode3,770 · 0%
  255. github.com/sirupsen/logrus.Debugf3,751 · 32%
  256. time.After3,702 · 43%
  257. reflect.Value.Len3,694 · 13%
  258. github.com/onsi/gomega.Expect3,688 · 12%
  259. time.Time.Before3,678 · 27%
  260. io/ioutil.ReadAll3,676 · 2%
  261. github.com/hashicorp/terraform/internal/tfdiags.Diagnostics.Append3,664 · 19%
  262. time.Time.After3,614 · 36%
  263. github.com/hashicorp/boundary/internal/errors.New3,611 · 5%
  264. bytes.Buffer.Write3,610 · 32%
  265. github.com/IBM/networking-go-sdk/common.GetComponentInfo3,590 · 0%
  266. k8s.io/apimachinery/pkg/util/validation/field.Invalid3,519 · 32%
  267. flag.String3,501 · 0%
  268. github.com/rs/zerolog.Event.Msg3,486 · 18%
  269. time.NewTicker3,479 · 2%
  270. github.com/therecipe/qt/core.QObject.QObject_PTR3,467 · 0%
  271. net/url.PathEscape3,462 · 5%
  272. encoding/json.Encoder.Encode3,452 · 6%
  273. github.com/seaweedfs/seaweedfs/weed/glog.V3,450 · 22%
  274. go.uber.org/zap.String3,427 · 23%
  275. k8s.io/klog/v2.KObj3,398 · 26%
  276. strings.Builder.WriteByte3,396 · 58%
  277. encoding/base64.Encoding.EncodeToString3,350 · 9%
  278. gitea.dev/modules/log.Error3,340 · 16%
  279. k8s.io/kubernetes/test/e2e/framework.Failf3,338 · 13%
  280. encoding/json.NewEncoder3,330 · 2%
  281. encoding/binary.Write3,326 · 9%
  282. github.com/hashicorp/boundary/internal/errors.Wrap3,309 · 12%
  283. strconv.ParseFloat3,283 · 24%
  284. net.Conn.Close3,263 · 16%
  285. encoding/binary.Read3,244 · 12%
  286. os.File.Name3,239 · 9%
  287. log/slog.String3,238 · 21%
  288. strconv.FormatUint3,217 · 46%
  289. time.Ticker.Stop3,195 · 11%
  290. reflect.Value.IsNil3,186 · 24%
  291. encoding/hex.EncodeToString3,185 · 11%
  292. github.com/gravitational/trace.Wrap3,156 · 9%
  293. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors.NewTencentCloudSDKError3,148 · 0%
  294. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.Send3,147 · 0%
  295. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.GetCredential3,144 · 0%
  296. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.InitBaseRequest3,144 · 0%
  297. hash.Hash.Sum3,136 · 6%
  298. github.com/seaweedfs/seaweedfs/weed/glog.Verbose.Infof3,124 · 23%
  299. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.Init3,105 · 0%
  300. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.WithApiInfo3,105 · 0%
  301. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.SetContext3,103 · 0%
  302. os.RemoveAll3,099 · 13%
  303. reflect.DeepEqual3,088 · 24%
  304. regexp.Regexp.FindStringSubmatch3,027 · 27%
  305. github.com/larksuite/cli/shortcuts/common.RuntimeContext.Str3,014 · 1%
  306. context.WithValue3,006 · 3%
  307. github.com/alibabacloud-go/darabonba-openapi/v2/client.Client.CallApi2,973 · 0%
  308. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region.NewRegion2,970 · 0%
  309. io/fs.FileInfo.Mode2,967 · 20%
  310. k8s.io/kops/upup/pkg/fi.ValueOf2,950 · 17%
  311. encoding/binary.bigEndian.Uint322,928 · 21%
  312. strings.Cut2,902 · 41%
  313. net/http.ResponseWriter.Write2,901 · 5%
  314. os/exec.Cmd.Run2,884 · 8%
  315. sync/atomic.Bool.Load2,863 · 11%
  316. k8s.io/klog/v2.Infof2,863 · 19%
  317. github.com/alibabacloud-go/darabonba-openapi/v2/client.Client.CallApiWithCtx2,862 · 0%
  318. flag.FlagSet.StringVar2,827 · 0%
  319. strings.Repeat2,782 · 26%
  320. net/http.NewRequest2,759 · 4%

Colour is heat, how many of a function’s production calls land inside loops. The ringed, labelled functions run both hot and often, which is where a profiler is most likely to agree. Static counts aren’t runtime cost. Snapshot 2026-W39.