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.Errorf377,760 · 15%
  2. github.com/Azure/go-autorest/autorest.NewErrorWithError215,125 · 0%
  3. fmt.Sprintf203,304 · 19%
  4. github.com/Azure/go-autorest/autorest.Encode193,077 · 0%
  5. encoding/json.Unmarshal172,393 · 51%
  6. errors.New98,297 · 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,629 · 5%
  11. context.Background73,585 · 4%
  12. encoding/json.Marshal69,526 · 2%
  13. net/http.Request.WithContext67,117 · 0%
  14. github.com/Azure/go-autorest/autorest.WithBaseURL62,503 · 0%
  15. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils.Marshal61,659 · 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,170 · 0%
  23. sync.Mutex.Unlock53,066 · 8%
  24. github.com/Azure/go-autorest/autorest/azure.DoRetryWithRegistration50,090 · 0%
  25. sync.Mutex.Lock49,443 · 7%
  26. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithLocationType47,566 · 0%
  27. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithName47,566 · 0%
  28. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.NewFieldDef47,566 · 0%
  29. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithRequestField45,761 · 0%
  30. github.com/Azure/go-autorest/autorest.ByUnmarshallingJSON44,775 · 0%
  31. fmt.Fprintf40,889 · 25%
  32. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.FieldDef.WithJsonTag40,116 · 0%
  33. time.Now38,826 · 11%
  34. strings.TrimSpace38,408 · 28%
  35. github.com/therecipe/qt/internal.CallLocalFunction35,572 · 0%
  36. github.com/Azure/go-autorest/autorest.AsGet35,031 · 0%
  37. strings.Builder.WriteString33,550 · 30%
  38. github.com/aliyun/alibaba-cloud-sdk-go/sdk.Client.AddAsyncTask33,306 · 0%
  39. path/filepath.Join33,290 · 21%
  40. fmt.Printf32,152 · 24%
  41. strings.HasPrefix29,075 · 42%
  42. github.com/alibabacloud-go/tea/dara.IsNil26,953 · 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,949 · 27%
  46. github.com/IBM/go-sdk-core/v5/core.SDKErrorf23,613 · 0%
  47. fmt.Println23,475 · 14%
  48. sync.RWMutex.Unlock22,718 · 5%
  49. github.com/DataDog/datadog-api-client-go/v2/api/datadog.Unmarshal21,758 · 0%
  50. sync.RWMutex.Lock21,057 · 5%
  51. strings.Split19,942 · 23%
  52. io.Closer.Close19,736 · 8%
  53. strings.ToLower19,513 · 28%
  54. errors.Is19,347 · 23%
  55. log.Printf18,950 · 21%
  56. sync.RWMutex.RUnlock18,669 · 5%
  57. strconv.AppendInt18,162 · 1%
  58. net/http.Header.Set18,131 · 5%
  59. os.Getenv17,926 · 2%
  60. reflect.ValueOf17,751 · 12%
  61. sync.RWMutex.RLock17,535 · 4%
  62. github.com/aliyun/alibaba-cloud-sdk-go/sdk.Client.DoAction16,654 · 0%
  63. github.com/Azure/go-autorest/autorest.AsContentType16,388 · 0%
  64. net/http.Header.Get16,346 · 3%
  65. github.com/Azure/go-autorest/autorest.WithJSON16,307 · 0%
  66. github.com/DataDog/datadog-api-client-go/v2/api/datadog.Marshal16,057 · 0%
  67. strconv.Itoa15,468 · 21%
  68. github.com/Azure/go-autorest/autorest.DoRetryForStatusCodes15,451 · 0%
  69. github.com/huaweicloud/huaweicloud-sdk-go-v3/core.HcHttpClient.Sync15,363 · 0%
  70. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker.BaseInvoker.Invoke15,322 · 0%
  71. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker.NewBaseInvoker15,322 · 0%
  72. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.Build15,322 · 0%
  73. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithContentType15,322 · 0%
  74. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithMethod15,322 · 0%
  75. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithPath15,322 · 0%
  76. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.HttpRequestDefBuilder.WithResponse15,322 · 0%
  77. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def.NewHttpRequestDefBuilder15,322 · 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,677 · 50%
  83. github.com/onsi/gomega.Expect14,582 · 9%
  84. time.Since14,086 · 14%
  85. github.com/pkg/errors.Wrap14,082 · 12%
  86. github.com/pkg/errors.Wrapf13,467 · 22%
  87. bytes.Buffer.WriteString13,418 · 37%
  88. regexp.MustCompile12,942 · 2%
  89. os.File.Close12,672 · 8%
  90. github.com/stretchr/testify/require.NoError12,593 · 11%
  91. context.Context.Err12,422 · 41%
  92. github.com/pkg/errors.Errorf12,341 · 19%
  93. github.com/alibabacloud-go/tea/dara.Prettify12,285 · 0%
  94. github.com/IBM/go-sdk-core/v5/core.UnmarshalPrimitive12,234 · 0%
  95. io.Writer.Write11,803 · 18%
  96. strings.Trim11,724 · 7%
  97. net/http.Request.Context11,633 · 4%
  98. fmt.Sprint11,434 · 7%
  99. github.com/IBM/vpc-go-sdk/common.GetComponentInfo11,329 · 0%
  100. github.com/Azure/go-autorest/autorest.AsPost10,834 · 0%
  101. github.com/go-logr/logr.Logger.Info10,796 · 18%
  102. k8s.io/kubernetes/test/e2e/framework.ExpectNoError10,641 · 7%
  103. os.Stat10,235 · 20%
  104. strconv.Atoi10,067 · 24%
  105. context.TODO10,058 · 17%
  106. time.Time.Year9,850 · 1%
  107. strings.Builder.String9,836 · 8%
  108. time.Time.Add9,680 · 15%
  109. context.WithTimeout9,563 · 7%
  110. strings.HasSuffix9,536 · 33%
  111. net/url.Values.Add9,415 · 18%
  112. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json.Unmarshal9,363 · 0%
  113. reflect.Value.Elem9,338 · 18%
  114. fmt.Fprintln9,227 · 19%
  115. net/url.Values.Set9,114 · 19%
  116. strings.TrimPrefix9,005 · 32%
  117. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter.StringConverterFactory8,923 · 0%
  118. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter.Converter.CovertStringToInterface8,922 · 0%
  119. reflect.TypeOf8,913 · 10%
  120. github.com/Azure/go-autorest/autorest.DecorateSender8,816 · 0%
  121. github.com/onsi/gomega/types.Assertion.To8,628 · 11%
  122. reflect.Value.Type8,489 · 21%
  123. os.Exit8,340 · 6%
  124. testing.common.Fatalf8,132 · 19%
  125. os.ReadFile8,113 · 12%
  126. github.com/IBM/go-sdk-core/v5/core.StringPtr8,103 · 0%
  127. github.com/Azure/go-autorest/autorest/to.String8,053 · 0%
  128. github.com/Azure/go-autorest/autorest.Prepare8,051 · 0%
  129. github.com/Azure/go-autorest/autorest.AsJSON8,040 · 0%
  130. net/http.Error7,839 · 3%
  131. github.com/aws/aws-sdk-go/aws.String7,781 · 14%
  132. github.com/pkg/errors.New7,720 · 7%
  133. time.Time.Format7,648 · 13%
  134. path.Join7,622 · 18%
  135. reflect.Value.Kind7,622 · 20%
  136. github.com/Azure/go-autorest/autorest.AsPut7,583 · 0%
  137. reflect.Value.Set7,564 · 17%
  138. strings.ReplaceAll7,535 · 22%
  139. io.ReadAll7,529 · 6%
  140. reflect.Value.Interface7,492 · 41%
  141. bytes.Buffer.Bytes7,442 · 10%
  142. time.Sleep7,422 · 62%
  143. net/http.ResponseWriter.Header7,369 · 4%
  144. bytes.NewReader7,244 · 7%
  145. github.com/IBM/platform-services-go-sdk/common.GetComponentInfo7,104 · 0%
  146. os.IsNotExist7,084 · 16%
  147. bytes.Buffer.String7,053 · 9%
  148. github.com/Azure/go-autorest/autorest.AsDelete6,959 · 0%
  149. net/url.Parse6,825 · 9%
  150. github.com/DataDog/datadog-api-client-go/v2/api/datadog.UnmarshalUseNumber6,780 · 0%
  151. github.com/DataDog/datadog-api-client-go/v2/api/datadog.DeleteKeys6,777 · 0%
  152. github.com/go-logr/logr.Logger.V6,665 · 23%
  153. net/url.URL.String6,597 · 9%
  154. os/exec.Command6,592 · 8%
  155. github.com/alibabacloud-go/tea/dara.Validate6,550 · 0%
  156. testing.common.Errorf6,546 · 27%
  157. github.com/go-kit/log.Logger.Log6,311 · 29%
  158. time.Time.UTC6,273 · 10%
  159. sort.Strings6,264 · 11%
  160. github.com/IBM/go-sdk-core/v5/core.UnmarshalModel6,257 · 0%
  161. reflect.Type.Kind6,247 · 19%
  162. net/url.URL.Query6,244 · 2%
  163. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json.Marshal6,240 · 0%
  164. time.Time.Minute6,225 · 1%
  165. sync.WaitGroup.Done6,161 · 42%
  166. testing.common.Helper6,113 · 0%
  167. time.Time.Hour6,086 · 1%
  168. math.Abs6,035 · 15%
  169. github.com/containerd/log.G6,034 · 23%
  170. strings.TrimSuffix6,017 · 26%
  171. net/http.ResponseWriter.WriteHeader5,893 · 2%
  172. strconv.FormatInt5,884 · 31%
  173. github.com/okta/okta-sdk-golang/v5/okta.newAPIResponse5,828 · 0%
  174. sync.WaitGroup.Wait5,810 · 5%
  175. regexp.Regexp.MatchString5,773 · 30%
  176. github.com/alibabacloud-go/tea/dara.Convert5,750 · 0%
  177. sync.WaitGroup.Add5,733 · 39%
  178. github.com/go-logr/logr.Logger.Error5,707 · 15%
  179. github.com/Azure/go-autorest/autorest.DecoratePreparer5,652 · 0%
  180. strings.EqualFold5,647 · 44%
  181. github.com/alibabacloud-go/tea/dara.BoolValue5,605 · 0%
  182. strings.Replace5,601 · 22%
  183. github.com/alibabacloud-go/darabonba-openapi/v2/utils.Query5,588 · 0%
  184. github.com/onsi/gomega.HaveOccurred5,571 · 7%
  185. github.com/Azure/go-autorest/autorest.WithHeader5,549 · 0%
  186. github.com/onsi/gomega/types.Assertion.ToNot5,511 · 6%
  187. go.opentelemetry.io/otel/attribute.Key.String5,502 · 0%
  188. path/filepath.Dir5,466 · 19%
  189. net/url.Values.Get5,437 · 4%
  190. k8s.io/klog/v2.V5,430 · 22%
  191. os.Open5,380 · 9%
  192. time.Time.IsZero5,356 · 20%
  193. strconv.ParseInt5,321 · 22%
  194. net/http.Header.Add5,297 · 57%
  195. context.WithValue5,277 · 2%
  196. github.com/Azure/go-autorest/autorest.String5,277 · 0%
  197. github.com/stretchr/testify/require.Assertions.NoError5,266 · 6%
  198. encoding/json.Decoder.Decode5,217 · 10%
  199. time.Time.Unix5,216 · 12%
  200. time.Duration.Seconds5,199 · 15%
  201. reflect.Type.Elem5,177 · 22%
  202. slices.Contains5,168 · 37%
  203. errors.As5,132 · 11%
  204. os.MkdirAll5,131 · 10%
  205. log.Fatal5,092 · 7%
  206. context.WithCancel5,065 · 4%
  207. net/http.Client.Do5,017 · 8%
  208. github.com/therecipe/qt/internal.CallLocalAndDeregisterRemoteFunction4,981 · 0%
  209. github.com/therecipe/qt/internal.CallLocalAndRegisterRemoteFunction4,973 · 0%
  210. sync.Once.Do4,963 · 3%
  211. encoding/json.NewDecoder4,962 · 3%
  212. os.Remove4,894 · 17%
  213. strconv.ParseUint4,831 · 34%
  214. path/filepath.Base4,795 · 24%
  215. strconv.FormatFloat4,795 · 15%
  216. io.Copy4,793 · 11%
  217. sort.Slice4,781 · 9%
  218. errors.Join4,776 · 23%
  219. io/fs.DirEntry.Name4,743 · 91%
  220. time.Time.Second4,719 · 1%
  221. github.com/jesseduffield/lazygit/pkg/integration/components.Contains4,653 · 0%
  222. log.Fatalf4,638 · 14%
  223. github.com/markusmobius/go-dateparser/internal/regexp.MustCompile4,635 · 0%
  224. time.Time.UnixNano4,613 · 11%
  225. time.Time.Month4,598 · 2%
  226. testing.T.Run4,596 · 17%
  227. github.com/openai/openai-go/v3/internal/apijson.UnmarshalRoot4,538 · 0%
  228. github.com/stretchr/testify/require.Assertions.Equal4,487 · 6%
  229. time.Unix4,482 · 19%
  230. context.Context.Value4,474 · 1%
  231. bytes.NewBuffer4,351 · 5%
  232. github.com/jdcloud-api/jdcloud-sdk-go/core.Logger.Log4,338 · 0%
  233. golang.org/x/xerrors.Errorf4,337 · 19%
  234. github.com/jdcloud-api/jdcloud-sdk-go/core.JDCloudClient.Send4,325 · 0%
  235. encoding/json.MarshalIndent4,313 · 4%
  236. net/url.Values.Encode4,304 · 2%
  237. fmt.Fprint4,293 · 24%
  238. bytes.Equal4,291 · 31%
  239. net/http.NewRequestWithContext4,282 · 5%
  240. strings.Index4,239 · 32%
  241. github.com/juju/errors.Trace4,225 · 21%
  242. os.WriteFile4,205 · 11%
  243. bytes.Buffer.WriteByte4,185 · 44%
  244. github.com/onsi/ginkgo/v2.It4,184 · 2%
  245. io/fs.FileInfo.IsDir4,183 · 24%
  246. k8s.io/klog/v2.Verbose.Infof4,167 · 24%
  247. time.Time.Day4,140 · 2%
  248. strconv.FormatBool4,133 · 12%
  249. log.Println4,125 · 18%
  250. strings.SplitN4,059 · 41%
  251. k8s.io/kubernetes/test/e2e/framework.Logf4,058 · 25%
  252. time.Time.Sub4,012 · 28%
  253. google.golang.org/grpc/status.Errorf3,997 · 10%
  254. github.com/stretchr/testify/assert.Equal3,945 · 11%
  255. strings.ToUpper3,941 · 28%
  256. github.com/cockroachdb/errors.Wrap3,891 · 10%
  257. github.com/DataDog/datadog-api-client-go/v2/api/datadog.APIClient.Decode3,887 · 0%
  258. k8s.io/apimachinery/pkg/api/errors.IsNotFound3,870 · 16%
  259. github.com/Azure/go-autorest/autorest.AsPatch3,852 · 0%
  260. log/slog.Logger.Debug3,788 · 24%
  261. time.Time.Before3,759 · 27%
  262. github.com/sirupsen/logrus.Debugf3,751 · 32%
  263. time.Time.After3,724 · 36%
  264. time.After3,706 · 43%
  265. reflect.Value.Len3,703 · 13%
  266. github.com/onsi/gomega.Equal3,687 · 10%
  267. io/ioutil.ReadAll3,670 · 2%
  268. github.com/hashicorp/terraform/internal/tfdiags.Diagnostics.Append3,665 · 18%
  269. bytes.Buffer.Write3,612 · 32%
  270. github.com/hashicorp/boundary/internal/errors.New3,611 · 5%
  271. github.com/IBM/networking-go-sdk/common.GetComponentInfo3,590 · 0%
  272. k8s.io/apimachinery/pkg/util/validation/field.Invalid3,523 · 32%
  273. flag.String3,519 · 0%
  274. net/url.PathEscape3,503 · 5%
  275. time.NewTicker3,498 · 2%
  276. github.com/rs/zerolog.Event.Msg3,493 · 18%
  277. google.golang.org/protobuf/compiler/protogen.GeneratedFile.P3,475 · 17%
  278. github.com/therecipe/qt/core.QObject.QObject_PTR3,467 · 0%
  279. github.com/seaweedfs/seaweedfs/weed/glog.V3,463 · 22%
  280. encoding/json.Encoder.Encode3,462 · 6%
  281. strings.Builder.WriteByte3,453 · 58%
  282. go.uber.org/zap.String3,428 · 23%
  283. k8s.io/klog/v2.KObj3,403 · 26%
  284. encoding/base64.Encoding.EncodeToString3,386 · 9%
  285. encoding/json.NewEncoder3,340 · 2%
  286. gitea.dev/modules/log.Error3,340 · 16%
  287. k8s.io/kubernetes/test/e2e/framework.Failf3,339 · 13%
  288. encoding/binary.Write3,327 · 9%
  289. github.com/hashicorp/boundary/internal/errors.Wrap3,309 · 12%
  290. net.Conn.Close3,306 · 16%
  291. strconv.ParseFloat3,304 · 24%
  292. os.File.Name3,257 · 9%
  293. log/slog.String3,251 · 21%
  294. encoding/binary.Read3,244 · 12%
  295. hash.Hash.Sum3,243 · 6%
  296. strconv.FormatUint3,226 · 46%
  297. github.com/onsi/gomega.Succeed3,222 · 8%
  298. encoding/hex.EncodeToString3,213 · 10%
  299. time.Ticker.Stop3,213 · 11%
  300. reflect.Value.IsNil3,199 · 24%
  301. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors.NewTencentCloudSDKError3,162 · 0%
  302. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.Send3,161 · 0%
  303. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.GetCredential3,158 · 0%
  304. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common.Client.InitBaseRequest3,158 · 0%
  305. github.com/gravitational/trace.Wrap3,156 · 9%
  306. github.com/seaweedfs/seaweedfs/weed/glog.Verbose.Infof3,132 · 23%
  307. os.RemoveAll3,119 · 13%
  308. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.Init3,119 · 0%
  309. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.WithApiInfo3,119 · 0%
  310. github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http.BaseRequest.SetContext3,117 · 0%
  311. reflect.DeepEqual3,098 · 24%
  312. regexp.Regexp.FindStringSubmatch3,038 · 27%
  313. github.com/larksuite/cli/shortcuts/common.RuntimeContext.Str3,017 · 1%
  314. github.com/prometheus/client_golang/prometheus.Counter.Inc3,010 · 21%
  315. io/fs.FileInfo.Mode2,996 · 20%
  316. github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region.NewRegion2,975 · 0%
  317. github.com/alibabacloud-go/darabonba-openapi/v2/client.Client.CallApi2,973 · 0%
  318. strings.Cut2,958 · 41%
  319. k8s.io/kops/upup/pkg/fi.ValueOf2,950 · 17%
  320. encoding/binary.bigEndian.Uint322,929 · 21%

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-W40.