Skip to content

Instantly share code, notes, and snippets.

View Odaimoko's full-sized avatar
🛢️
Firework

Odaimoko Odaimoko

🛢️
Firework
  • 02:49 (UTC +08:00)
View GitHub Profile
@Odaimoko
Odaimoko / TweenAwaitExtensions.cs
Last active November 22, 2024 09:44
Godot tween awaiter implementation in CSharp
using System.Runtime.CompilerServices;
using Godot;
namespace Imk.GodotWrapper;
public static class TweenExtensions
{
public static TweenAwaiter GetAwaiter(this Tween tween) => new TweenAwaiter(tween);
}
@Odaimoko
Odaimoko / react-native-react-hook-form.js
Created August 7, 2023 01:54 — forked from tuantvk/react-native-react-hook-form.js
React Native use React Hook Form
import React from 'react';
import {
View,
Text,
TextInput,
Button,
StyleSheet,
} from 'react-native';
import { Picker } from '@react-native-picker/picker';
import { useForm, Controller } from 'react-hook-form';
@Odaimoko
Odaimoko / cloudSettings
Last active August 13, 2019 05:48
VScode settings sync
{"lastUpload":"2019-08-13T05:48:18.379Z","extensionVersion":"v3.4.1"}

#浅析trace的处理 由于作者见识有限,本文仅对WebSearch2.spc这一trace进行讲解分析。

##What is trace trace这个词有着很多的含义,在英文维基中计算机科学分类中就有5个代指。而实验室平常所说到的trace应该是特指IO trace。说来惭愧,一直在网上找不到实验室用的IO trace的权威定义,根据之前跟诸位学长的探讨,自己的拙见如下:

IO trace就是一些真实在线系统的运行数天的磁盘所接受的IO请求记录。

而IO trace也有着许多格式,例如本文提到的WebSearch2就来自于一个流行的搜索引擎,是真实的工作实际负载,它的格式定义遵循SPC trace文本规范[1]。厂商之所以将其真实的负载公布出来,也是为了让学术界对这些数据进行分析科研,让学术界和工业界紧密的结合,达到双赢的目的。