LoginSignup
0
0

More than 5 years have passed since last update.

案 > SourceTree | PowerShell > 設定ファイル(.git/config)変更時に{Slackに通知する | 変更をカウントする} > 没

Last updated at Posted at 2017-08-10

SourceTree(Windows版)に関して。

https://jira.atlassian.com/browse/SRCTREEWIN-7592
を見ているとbranchの削除、生成において設定ファイル(.git/config)に予想以上のCreateFile処理が発生しているとのこと。

Robert Sirre (CS)
Wow, I attempted to see what operations are performed on this file when using SourceTree and for instance, deleting and checking out a branch, but this results in an enormous amount of 'CreateFile' operations.

Powershell / slack / vivado > Generate Block Design終了時slack通知 (v0.3) > 終了時に1回通知されるようになった
で用いたようなPowerShellスクリプトを用いると、設定ファイル変更時にSlack通知することはできそう。

Slack通知しなくてもカウントを数えるというだけでもいいかもしれない。

停止時間は、-m パラメータを使用してミリ秒で指定することもできます。

タイムスタンプの比較だとミリ秒単位はキャプチャできないだろうか。

疑問点: CreateFile()の回数を知ることで、ソフトの改善にどう結びつけることができるだろうか

PowerShellはアクティブになっていないと処理がされないのかもしれない。この点はUnityのアプリと一緒で、バックグラウンドで動かす方法を見つけないとチェック処理をしているつもりでも、通知がされなくなる。

ウィンドウがアクティブでないと取りこぼしそう。
SourceTreeを使いながらPowerShellでキャプチャするのは、自分の知識ではすぐに実装できないだろう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0