Skip to content
ℕ𝔸𝕊𝔸™ℕ𝕒𝕤𝕒𝕣𝕖™𝕊𝕡𝕒𝕔𝕖𝕏™ https://nasa.re/

Nasare™🚀

フレッシュ スペース & テクノロジー NEWS📢

  • About 𝒩𝒶𝓈𝒶𝓇𝑒™
  • SMART Tools
  • SMART AI
    • Kubeshark PCAP Export/Import
    • Coaching engineering managers to employ on organizational issues
    • Zelda: Hyperlink’s Awakening game engine documentation (2021)
    • Commercial Resupply Services-CRS
  • Show HN
    • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
    • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
    • 主な BGP 増加をレジデンス Windows デスクトップに追加する
    • ガジェットの複雑さが増し、余分な IP の再利用が促進される
    • 新しい GitHub CLI 拡張インストゥルメント
    • Kubernetes を 7,500 ノードにスケーリング (2021 年)
    • Wander アプリ用の軽量なオンザフリット構成ライブラリ
    • Ask HN
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Level to HN: A corpulent game of snake encoded in a url
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Show HN
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Android phones will at the moment obtain iPhone-love SOS satellite texting
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Level to HN: A corpulent game of snake encoded in a url
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Tag HN: Using Key-Value Retail outlets in Serverless Codehooks.io Applications
    • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
    • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
    • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
    • Brand HN: Motion photographs Watchlist Chrome Extension
    • Level to HN: A corpulent game of snake encoded in a url
    • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
    • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
    • Speak HN: What sub $200 product improved HN readers’ 2022
    • Level to HN: An initiate source tool to generate Jet Engine compressors
    • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
    • Insist HN: Ov – characteristic smartly off terminal pager
    • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
    • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
    • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
    • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
  • A Computer virus and a Dilemma
    • OCIS – OwnCloud Countless Scale
    • A Princeton student built an app which is ready to detect if ChatGPT wrote an essay
    • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
    • Adobe’s Command material analysis can be using photos/videos to narrate AI w/o consent
    • Ultralearning a.k.a. how I learned to code
    • Automatic1111 is assist on GitHub after taking away Embedding Links
    • Where Your Sides Came From
    • What Is a Pig Butchering Rip-off?
    • Submit-processing is ruining iPhone photos
    • Clos Topologies and Centralized Retain a watch on in Google’s Datacenter Community
    • Miller Engineering DS-1 House Planetarium
    • Gimel Studio: Non-harmful, 2D image editor
  • Technology
    • Miller Engineering DS-1 House Planetarium
    • Apple Doctors: to construct it as a file it is advisable to electronic mail it to your self
    • The Air India passenger who urinated on a girl has been fired by Wells Fargo
    • The Filesystem Hierarchy Usual Comes to Guix Containers
    • Sooner than it sued Google for copying from Java, Oracle changed into as soon as copying IBM’s SQL (2020)
    • The i3-gaps mission has been merged with i3
    • Making an Alphorn from Scratch
    • Apple: Braille Individual Guides
    • MotherDuck Is a Original Thought
    • The class of CGI and simple make
    • Like a mercurial tour of DragonFly BSD 6.4?
    • computer science
    • AI
    • Artificial intelligence
    • Technology
    • Ai
    • Apple
    • digital
  • TOP HN
    • anti-Mastodon
    • TOP HN
      • Show HN
      • Ask HN
      • coding
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 新しい GitHub CLI 拡張インストゥルメント
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • Artificial intelligence
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • Technology
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Advise HN: Daft Art – an album veil maker powered by AI and curated aesthetics
      • Brand HN: Motion photographs Watchlist Chrome Extension
      • Declare HN: I wrote a WebAssembly Interpreter and Toolkit in C
      • Demonstrate HN: ClickHouse-local – a runt instrument for serverless files analytics
      • Describe HN: Kandria, an action RPG made in Frequent Voice, is now out
      • Existing HN: Connmap – Desktop widget that reveals your TCP company on an international diagram
      • Insist HN: Ov – characteristic smartly off terminal pager
      • Just by Notでプログラミングするシステム オブジェクト指向プログラミングの活用
      • Kubernetes を 7,500 ノードにスケーリング (2021 年)
      • Level to HN: A corpulent game of snake encoded in a url
      • Level to HN: An initiate source tool to generate Jet Engine compressors
      • Level to HN: Graphic-Walker – A special kind of originate-offer different to Tableau
      • Point out HN: Kweb: A a ways away interface to the earn browser’s DOM
      • Present HN: Nanelo DNS – Privacy-Kindly, European Nameservers
      • Reward HN: Vim on-line editor the exercise of WebAssembly, storing files the exercise of IndexedDB
      • Show HN: AREnets – TensorFlow-basically based mostly Relation Extraction equipment for work in Colab
      • Speak HN: What sub $200 product improved HN readers’ 2022
      • Uncover HN: Easy internet app for teenagers to management a single Philips Hue light
      • Wander アプリ用の軽量なオンザフリット構成ライブラリ
      • WINd3x、iPod Bootrom エクスプロイトは 10 年遅かった
      • ガジェットの複雑さが増し、余分な IP の再利用が促進される
      • 主な BGP 増加をレジデンス Windows デスクトップに追加する
      • 新しい GitHub CLI 拡張インストゥルメント
      • ロンドンで*ダウン*を継続的に見つめる: Pavement Oddities
      • 報酬 HN: C の 30 行でスピンロック
      • FAA の NOTAM とは何ですか? 航空専門家が機械の仕組みを説明
      • ナノGPT
      • 1 ビット LCD のグレースケール (2022)
      • The Muse (YC W12) は FP&A のシニア ディレクターを採用しています
      • Zen (YC S21) はグロース エンジニアを採用しています
      • Tall Inquire of (YC W21) が B2B 回顧録の幹部を採用
      • Actiondesk (YC S19) は、プロダクト ドレスメーカーを採用しています (4-6 か月の契約)
      • Oven (YC S19) は、Bun を作成するために C/C++ または Zig エンジニアを採用しています。
      • WInd3x, the iPod Bootrom exploit 10 years too unhurried
      • Sign HN: FASTA recordsdata を操作するための FUSE モジュール
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • Wage Development Continues to Gradual in the UK and Euro House
      • Stage Supervisor for the unimpressed: 1 Getting started
      • First public free up of Pushup: a brand unique compiler for making net apps in Trip
      • Fixing Cart-Pole Swingup with a Hierarchical Controller
      • Flight Testing the Touchdown Radar for Mars Science Laboratory 2011-06-21T17:36:36Z
      • Flightcontrol (YC W22) is hiring first Developer Recommend
      • Flying boats and other tech for cleaner shipping
      • Four Finalist Touchdown Location Candidates for Mars Science Laboratory 2008-11-19T16:21:01Z
      • France’s prized nuclear sector stalled in Europe’s hour of want
      • French startup unveils new residential thermo-acoustic warmth pump
      • FTC Cracks Down on Firms That Impose Contaminated Noncompete Restrictions
      • FTX’s Aged Prime Lawyer Aided US Authorities in Bankman-Fried Case
      • FY18 NASA lėšų šnypštimas 2017-05-22T00:00:00Z
      • G-3PO: A protocol droid for Ghidra, or GPT-3 for reverse-engineering
      • Gail.com FAQ
      • Gemini-Titan (GT)-6 – Gemini 6 of 7 – 지역 사진 – 외부 지역 1965-12-15T00:00:00Z
      • Geoffrey Hinton Publishes Original Deep Learning Algorithm
      • Germany warns: AI fingers flee already underway (2021)
      • Gimel Studio: Non-harmful, 2D image editor
      • GitHub Availability File
      • GitHub Is Sued, and We Would possibly perhaps Learn Something About Creative Commons Licensing
      • Google needs RISC-V to be a “tier-1” Android architecture
      • Google researcher, lengthy out of math, cracks devilish dispute about gadgets
      • Google start sourced CDC File Transfer from the ashes of Stadia
      • GRC-2003-C-02097 2004-05-01T00:00:00Z
      • GRC-2013-C-05246 2009-11-26T00:00:00Z
      • Hello world!
      • Highlights of Science Launching on SpaceX CRS-15 2018-06-24T00:00:00Z
      • Hilf Al-Fudul
      • HiOperator (YC S16) Is Hiring VP of Engineering
      • HN を指します: Socketify.py: PyPy3 および Python3 用の Http/Https および WebSocket サーバー
      • How kind I blueprint a pair of buttocks?
      • How will the haj switch as international temperatures upward thrust?
      • Human gene linked to bigger brains turned into as soon as born from apparently pointless DNA
      • Hundreds of scientists publish a paper every 5 days
      • In Favor of Friction and Flexibility
      • Indicate HN: Klotho – Change into straightforward code into cloud native code
      • Indoor farming isn’t exact for the smartly off
      • Iranian assault drone came across to have parts from more than a dozen US companies
      • Israeli researcher experiences leak of 235M Twitter-linked e-mail addresses
      • Jam Stations in Low Earth Orbit
      • Jazz Is Freedom
      • JPL-20171102-TECHf-0001-ドローントリップ 人間vs機械 2017-11-17T00:00:00Z
      • JPL에서 NASA의 MSI 콘도미니엄 액셀러레이터 2022-08-25T00:00:00Z
      • JPSO extinct facial recognition abilities to arrest a man. The tech modified into once defective
      • jsc2017e136097 – 12 月 4 日,俄罗斯联邦地区公司 (Roscosmos) 的远征 54-55 号机组人员 Anton Shkaplerov 在俄罗斯 Principal person City 的加加林宇航员训练中心上向整洁的祝福者挥手致意,当时他登上了前往附近的 Chkalovsky Ai 的公共汽车2017-12-04T00:00:00Z
      • Kemble’s Cascade of Stars
      • Kepler-90 マシン (アーティストの考え) 2017-12-14T00:00:00Z
      • Koichi Wakata SpaceX 코칭 2022-06-27T00:00:00Z
      • KSC and Proud to Be Heart-Wide Diversity Tournament 2019-08-20T00:00:00Z
      • KSC ir „Proud to Be Center“ įvairovės turnyras 2019-08-20T00:00:00Z
      • AI
      • Artificial intelligence
      • Auto-Generate
      • anti-Mastodon
      • Awesome
      • BioSentinel
      • CATEGORIES
      • DC
      • Dione
      • Diversity
      • drone racing
      • drones
      • Dulles
      • education
      • Event
      • filmstock
      • Goddard
      • AI
      • Ask HN
      • autonomous
      • coding
      • computer science
      • Clusters
      • Artificial intelligence
        • Ai
        • Apple
        • Tesla
        • digital
        • MESSENGER
        • Device
        • Charts
        • change
        • Shows
        • fraud
        • Former
        • fucking
        • purge
        • Works
        • entering
        • Databases
        • Review
        • Strangely
        • Instinct
        • staff
        • Salesforce
        • intern
        • Involuntary
        • promise
        • Twilio’s
        • nisv live
        • attack
        • Iranian
        • France’s
        • prized
        • infrastructure
        • Debian-based
        • nisv s02 ep03
        • siduction
        • Awesome
        • Calculate
        • Beautiful
        • Linux
        • Start
        • dollar
        • Messier
        • Daughters
        • ‘Breakthrough’
        • obesity
        • Al-Fudul
        • sixty years
        • PyTorch
        • discloses
        • Ancient
        • Stone
        • Popup
        • design
        • public
        • expanding
        • cloud
        • forest
        • startup
        • French
        • batteries
        • fleas
        • spotted
        • Petals
        • language
        • Habitual
        • checking
        • GitHub
        • Availability
        • layers
        • inconsistencies
        • Affair
        • Quasi-War
        • Sergey
        • Irate
        • bestseller
        • necessarily
        • Scientists
        • Titan
        • twitch
        • FGS/NIRISS – Fine Guidance Sensor/Near InfraRed Imager and Slitless Spectrograph
        • infrared
        • ISIM – Integrated Science Instrument Module
        • JHU – Johns Hopkins University
        • JWST – James Webb Space Telescope
        • JWST – James Webb Space Telescope
        • absolute zero
        • Big Bang
        • Peace
        • Studio
        • Making
        • project
        • -gaps
        • warns
        • Germany
        • Braille
        • MotherDuck
        • prototype
        • Challenges
        • Infinite
        • OwnCloud
        • Novel
        • Before
        • copying
        • California
        • getting
        • States
        • Criminal
        • Brother
        • Released
        • Method
        • owners
        • ‘richsession’
        • email
        • Elements
        • Where
        • passenger
        • Hierarchy
        • Filesystem
        • economic
        • Crew Dragon
        • Bridenstine
        • Scientific
        • Heaviosity
        • Patterns
        • Unexpected
        • minimalist
        • Ecode
        • Alpha
        • Wolfram
        • Tailwind
        • HiOperator
        • Klotho
        • TEAMS
        • ROBOTICS
        • Antelope
        • Sponsors
        • Ellen Gertsen
        • Transform
        • Flightcontrol
        • subscriptions
        • Internet
        • Theory-building
        • you’re
        • looking
        • Transfer
        • error’
        • Tails
        • migrate
        • Building
        • Bitmovin
        • Remote
        • PhotoRoom
        • Company
        • Taking
        • Ribbon
        • BibDesk
        • Android
        • profilers
        • phones
        • modern
        • Mastercard
        • private
        • We’ve
        • reportedly
        • Microsoft
        • Artsy
        • trades
        • skilled
        • Polygon
        • Flying
        • Princeton
        • Codemods
        • Coaching
        • UK’s
        • popping
        • sourced
        • Wikipedia
        • admin
        • Indoor
        • quick
        • Mysterious
        • Spotify
        • Fancy
        • Spotify
        • Weird
        • mail-order
        • Recipients
        • computer
        • optics
        • partnership
        • commercial
        • telemetry
        • Crisis
        • billionaire
        • Party
        • Onelab
        • Faster
        • general
        • Adobe’s
        • database
        • FinanceDatabase
        • Numerical
        • Freedom
        • concrete
        • Stacks
        • computer science
        • NASA
    • Show HN
    • Ask HN
    • Technology
    • computer science
    • coding
    • Clusters
    • AI
    • drones
    • autonomous
    • Auto-Generate
    • Ask HN
    • Show HN
    • The SMART Science™
    • google
  • CRYPTO
    • Blockchain
    • farming
    • Billionaires
    • FTX’s
    • FinanceDatabase: A database of 300.000 symbols (ETFs, Currencies, Crypto)
  • Artificial intelligence
  • Toggle search form
  • MoltexFLEX がグラファイト研究の助成金を獲得
    MoltexFLEX がグラファイト研究の助成金を獲得 anti-Mastodon
  • 異例のヨーク・タイムズはあなたのプライバシーについてどのように考えているか – ロビン・ベルジョン著
    異例のヨーク・タイムズはあなたのプライバシーについてどのように考えているか – ロビン・ベルジョン著 anti-Mastodon
  • 現在の HN: パブリック URL を使用して、任意の場所から NestJS をプロットする Show HN
  • 1 回の問い合わせで 2,000 万ドルの Magic: The Gathering トランプを盗む Show HN
  • PlanetScale GitHub アクション
    PlanetScale GitHub アクション anti-Mastodon
  • Indoor farming isn’t exact for the smartly off
    Indoor farming isn’t exact for the smartly off NASA
  • CSS を使用したダイアグラムの回転 Show HN
  • グライドソート Up to the moment ハードウェアでの効率的なインメモリ アダプティブ ステディ ソート
    グライドソート Up to the moment ハードウェアでの効率的なインメモリ アダプティブ ステディ ソート anti-Mastodon
  • A Petite Blog Took on Appropriate Surveillance in China–and Obtained
    A Petite Blog Took on Appropriate Surveillance in China–and Obtained anti-Mastodon
  • Dakhni と言語割り当て Show HN
  • HN を示す: 簡単なサーバー側プッシュの例 Flask アプリの socketio の使用 (75 行)
    HN を示す: 簡単なサーバー側プッシュの例 Flask アプリの socketio の使用 (75 行) anti-Mastodon
  • BASICを勉強中 ふけるまたはもう1983年ではありません(2018)
    BASICを勉強中 ふけるまたはもう1983年ではありません(2018) anti-Mastodon
  • PyPI は、強力な IP がデータを処理するのにバイバイします。 Show HN
  • FTXのフランケンシュタイン博士、想像力を欠いた仮想通貨の代替手段を復活させようと試みる Show HN
  • AmazonがNFTマーケットプレイスを立ち上げる
    AmazonがNFTマーケットプレイスを立ち上げる Amazon

IRB の構築済み措置 (2021 年)

Posted on April 9, 2023 By 📢 Medium™

Ruby 3.0の公式オープン投稿を読むと、一発特に私の仲間を捕まえました。 Ruby 3.0 では、IRB は 対策 の描写を提示しました。 デバッグ、コードの評価、または元のコードの作成時に合計でスニペットを実行する人として、私は興味をそそられました! IRB のオリジナルの measure 描写は、IRB コンソールからさまざまなスニペットを測定するための一時的で直接的な方法です。

 トグル小節 

として オープンノート が示したように、measure (または

を使用してメジャーをオンに切り替えることができますmeasure :on)、measure :offの活用でoff

irb

(有名な)> 測定 時間 は追加

=>

なし irb

>

スリープ 1 処理中 時間: 1.000649

s

=> 1

irb

> 1 処理中 時間: 0.000025s

=>

1 irb

>

メジャー :オフ=>

無し

デフォルトでは、上記でわかるように、IRB コンソールは処理時間を秒単位で出力します (time の測定値)。測定がオンになっている場合のすべての命令。 Stackprof 開いたメモを読んでいたところ、TIMEのメッセージが追加されましたこれは、この元の描写でコードを測定できるさまざまな方法があることを意味するためです! メジャーには 1 つの追加のデフォルト モードが付属していることがわかりました: Stackprof.

Stackprof (rapid for Stack Profiler) は、Ruby コード用のサンプリング コール スタック プロファイラーです。 この種のコードは、スタック内の実行が行われている場所でコードが実行されている間に多くのサンプルを奪う可能性があり、呼び出しスタックのすべてのステップでどれだけの時間を費やしているかを見積もる状況になる可能性があります。 measure :stackprof.

Stackprof 機能のデモンストレーションを行う前に、実際に何が起こっているのかを知るために、整数を出力するよりも多くのことを行うコード スニペットが必要になります。 理想的には、約 1 回 (または数千回) 促すことになります。 もう 2020 年ではないという証明された現実 (そして、Ruby 3 では無限のマナー定義が提示された) を祝いましょう。 def

スニペット 

()= 10_000.回

{

日にち。パース(日にち

.

現在時刻 .to_s ).12ヶ月 !=2020 }

)これで、Stackprof を使用してスニペットを作成し、次の出力について学習できます:

irb

>

対策

:stackprof

) STACKPROF は追加 . => なし irb>

スニペット =================================モード

: CPU

(

1000) サンプル: 26

(
0.00

% 逃す レート ) GC :

2 (7.69%)==================================TOTAL

(

pct) サンプル (pct

)

フレーム 11 (42.3%) 11 ( 42.3 )%) 正規表現

#マッチ 5 (

19.2

%) 5 (19.2

%

) 弦

#gsub!

4 (

15.4

% ) 4

(

15.4%

) 整数#div

2 (7.7 %) 2 (7.7%) MatchData#open up

 
2

) (7.7%

) 2 (7.7%)

(

スイープ) 1 (3.8

%

) 1 (3.8%) 日にち。 現在時刻

に 1

(

3.8%) 1 (3.8%

)

日付#to_s 24 (92.3%) 0 (0.0%)

IRB

:: WorkSpace

#評価 24 ( 92.3 %)

0

(0.0%) IRB:: Irb #eval_input 24

(

92.3%

) 0 (

0.0

%) IRB .init_config

24

(92.3%) 0 (0.0%

)
StackProf

。衝動

24

(92.3%) 0

(

0.0% ) IRB::

Irb
#signal_status

24 (92.3%

)

0 (

0.0

%) RubyLex

#each_top_level_statement 24

 
(
92.3

%) 0 (0.0%

)
カーネル

#ループ 24 (92.3%

)

0 (0.0%)

カーネル

#spend 24 (92.3%) 0 ( 0.0 )%) IRB :: Irb

#衝動 24 (92.3 %) 0 (0.0%) IRB.開ける 24 ( 92.3 )%) 0

(

0.0%

) <トップ

(

必要)> 24 (

92.3

%) 0 (0.0%) カーネル#ロード

24

(

92.3%) 0

(

0.0%

)

<メイン

>

24 (

92.3
%

)

0

(0.0%

)

24 (
92.3%)

0

(0.0 %) カーネル

#eval

24 (92.3%) 0 (0.0

% )) <メイン

>

2 (7.7%)

0 (0.0 %) (

ごみ 品揃え) 24 (92.3%) 0 (0.0%)

整数#回

 

24

(

92.3%

)

0

(
0.0

%) 物体

#snippet

22 (84.6%

)

0 (

0.0

%) 日にち.パース 24

(

92.3% ) 0 (

0.0

%) IRB:: コンテクスト#評価=> 10000

ハザ! カスタマイズされたコードをまったく使用せずに、IRB コンソールから Stackprof 関係を取得しています!

出力をさらに表示するために、サンプルの数を確認しています。すべてのスタック本体で取得された時間と、それが占める時間の割合。 例として、最初の例は、Regexp#match

本体で 11 個のサンプルが取得されたことを示しています。 ヒントのヘッダーは、合計 26 個のサンプルが取得されたことを示しています。 したがって、Stackprof はここで、時間の 11/26、つまり 42.3% が Regexp#match

に費やされていると推定しています。 この 42.3% は、(pct) 列内で表されます。 このモデルでは、Stackprof の出力から、さまざまなスタック フレームがコードの実行にどれだけの時間を費やしているかについて正確な推定値が得られます

さらにヘッダー内で、ここで cpu モードでプロファイリングしていることを知る必要があります。 この種類の Stackprof は、CPU 命令が存在する可能性がある場合に、ミリ秒ごとにサンプルを取得します。 しかし、Stackprof には 多くの追加のサンプリング モード があります。 招待状の 1 つはウォール サンプリングです。これは実際の時間のミリ秒ごとにサンプルを取得します。cpu 命令が存在する可能性があるか、またはもはや存在しない場合、トピックはありません。

built-in measure :stackprof 本当のことを言うと、引数を渡すことができます。これは、Stackprof を要求するモードです。 例として、壁の時間のサンプリングを行うために、次のように促すことができます:

irb > 対策 :stackprof、 :壁 STACKPROF ) は 追加した。

=

> nil irb> スニペット

==================================モード

: 

壁(

1000

) サンプル

: 

56 (

0.00

% 逃す レート

)

GC:

5

(8.93 %

)==================================合計 (

pct

) サンプル (pct) フレーム 20 (35.7%) 20 (35.7

% )) 正規表現#マッチ 10 (

17.9 %) 10 (17.9%

)

日にち。現在時刻 ... )...=> 10000

私たちは、それぞれの 時間

と stackprof の測定値は、それぞれを切り替えるだけで簡単に取得できます。 さらに、measure :time を利用することで、測定値を明示的に時間に関連付けることができるという言葉。 それらはエクスポーズ内に印刷され、追加されます:

irb > 対策 :時間 TIME は

追加した.=

>
nil

irb> 測定 :stackprof STACKPROF は 追加した

.

処理時間: 0.000165 s

=> nil irb> スニペット

処理中 時間:

0.058907

s

================================== モード: CPU(1000) サンプル: 35 (0.00% 逃す レート) GC

: 5 (14.29 %)==================================TOTAL

(

pct)

サンプル 
(

pct

)
FRAME

7

(
20.0

%) 7 (

20.0 %) 正規表現 #マッチ 6 ( 17.1 %)

6

(17.1%) 日にち

.

現在時刻 ... ...

=>
10000

)現在どの測定を行っているかを知るには、測定:チェックリストを使用できます。 measure :checklist:

irb

> 測定 :チェックリスト - 時間 - STACKPROF 処理中 時間: 0.000129s

==================================モード

: CPU(

1000

) サンプル

: 

0

(
NaN

% 逃す レート) GC

: 

0 (なーん % )==================================合計 (pct) サンプル

(

pct)

フレーム => nil

カスタム対策手順

じっと考えていると、「これでクリアだけど、把握メジャーマップが必要になったらどうしよう」と思うかもしれません。 また、「なんてストレスのないブログ投稿だ!」と考えているあなたも

どちらにしても、始めてよかったです! このブログ投稿の

    2 番目の部分 を確認して、カスタマイズされた測定手順の記述について詳しく学んでください。 .

      TL;DR

      要約すると、IRB の元の メジャー 機能について学んだことは次のとおりです

        measure は、測定をオンに切り替えます。 measure :off 測定をオフに切り替えます

      • メジャー:stackprof が組み込まれており、code の結果を Stackprof (デフォルトモード: cpu) に出力します。 )
      • 対策:チェックリスト 現在使用中のすべての測定モードを一覧表示します
      • そして、
          カスタマイズされた測定手順については、おまけがあります

𝚆𝚊𝚝𝚌𝚑 𝙽𝙾𝚆 📺

Show HN Tags:Built-in, IRB's, Show NH:

Post navigation

Previous Post: Android Auto の変更
Next Post: 顧客が身体の本を共有できるようにするZ-Library

Related Posts

  • 素数における無限の部分和集合 – Terence Tao
    素数における無限の部分和集合 – Terence Tao Artificial intelligence
  • GitHub Copilot for Commerce が市場で利用可能になりました
    GitHub Copilot for Commerce が市場で利用可能になりました Artificial intelligence
  • トップバッスル知識スイッチのためのHDMI無​​線干渉の使用
    トップバッスル知識スイッチのためのHDMI無​​線干渉の使用 Artificial intelligence
  • IRB のビルトイン メジャー (2021) Show HN
  • Jupyterlab デスクトップ
    Jupyterlab デスクトップ Artificial intelligence
  • GlobusアナログナビゲーションPC内の電子機器のリバースエンジニアリング Show HN
  • 人々のためのLLMの活用
    人々のためのLLMの活用 Artificial intelligence
  • 英国政府が主要な資金調達を取りやめたため、Tech Nation は閉鎖されました
    英国政府が主要な資金調達を取りやめたため、Tech Nation は閉鎖されました Artificial intelligence
  • 従業員が機密性の高いビジネス レコードを ChatGPT に提供しており、セキュリティ上の懸念が高まっています
    従業員が機密性の高いビジネス レコードを ChatGPT に提供しており、セキュリティ上の懸念が高まっています Artificial intelligence
  • アラン・チューリング研究所は英国で好評のAIの開発に失敗
    アラン・チューリング研究所は英国で好評のAIの開発に失敗 Artificial intelligence

Recent Posts

  • Lunge Your GAN: 突進して写真を編集する
  • GPS (2022)
  • AI:ソーシャルメディアプラットフォームによって消された戦闘犯罪の証拠が明らかに
  • GNU チェイス: 構造化バイナリ ファイル用の拡張可能なエディター
  • Gorilla を試してみる: API でリンクされたフレンドリーな言語マネキン

Recent Comments

  1. robga on Excessive Avenue コーヒーのカフェイン ステージはさまざまで、テストでは
  2. Loic on 行方不明の放射性タブレットは、必死の捜索の後、WA奥地で偶然見つけました
  3. minihat on メタは、標準的な VR e スポーツ Echo Area をシャットダウンします
  4. dafelst on フレーム ポインターの巻き戻しによる Move 実行トレーサーのオーバーヘッドの削減
  5. cloudking on GraphGPT: 構造化されていないテキストの肯定的な素材からのレコードデータ グラフの外挿
  • 10年かけてDNSを学ぶ Show HN
  • Celery-AI OpenAI キーボード統合
    Celery-AI OpenAI キーボード統合 anti-Mastodon
  • HN Recap Every day Podcast – おそらく 6 番目の可能性があります Show HN
  • Info superhighway アーカイブで電卓がエミュレートされるようになりました
    Info superhighway アーカイブで電卓がエミュレートされるようになりました Artificial intelligence
  • ニューラル ネットワークを CUDA/HIP コードにレンダリングする
    ニューラル ネットワークを CUDA/HIP コードにレンダリングする Artificial intelligence
  • クリプトは賭けが大好きで、ChatGPT-4 を行いますか?
    クリプトは賭けが大好きで、ChatGPT-4 を行いますか? anti-Mastodon
  • ホット キー、スケーラビリティ、Zipf ディストリビューション
    ホット キー、スケーラビリティ、Zipf ディストリビューション Artificial intelligence
  • 炭素ベースの完全な導体は、低料金で曲げ可能な電子機器の先駆けとなる可能性があります – 科学 – AAAS
    炭素ベースの完全な導体は、低料金で曲げ可能な電子機器の先駆けとなる可能性があります – 科学 – AAAS anti-Mastodon
MAILANON
2100 MAIL
SEO
METAVERSE
BioLINK
CRYPTO MINING
CASINO
DEFI-TRACKER
StartApp Network
RAVES-MONSTER-GAME
RAVES EXCHANGE
RAVES NFT
KVANTA TV

Copyright © 2023 Nasare™🚀.

Powered by PressBook News Dark theme