Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support for manual timings and merging/adding timings

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript

調査の方向性

まず、既存の TypeScript timing API と、issue で言及されている active-collector および current-results-by-name の概念を確認します。繰り返し行う計測と手動で指定するタイミングを、説明の扱いも含めてどのように共存させるかを明確にします。API が要求された両方のワークフローを、文書化された動作とタイミングのマージに対するカバレッジ付きでサポートすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I feel that the interface currently is a bit limited:

  1. How would one measure time for database queries from multiple code locations? It should be possible to somehow merge multiple measurements for one timing, e.g. by adding up all dur values by name. This would not necessarily change the visible interface. Merging descriptions does not make much sense, so one could either use the first or last description that was passed in for a name or change the API such that it is possible to only pass description once for a given name.

  2. Sometimes it would be easier to specify timings manually, e.g. when timings come from requests to other APIs that return timing information themselves or if code does its own measurements.

Internally, I would probably opt to differentiate active collectors and the current results grouped by name (Map).

主要言語
TypeScript
スター
5
フォーク
0
平均マージ
1分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。